SuperNN  0.7.0
foreach.hpp
1 #ifndef PRIV_H
2 #define PRIV_H
3 
4 /* hide our foreach macro! */
5 
6 #define _auto(var, x) typeof(x) var = (x)
7 #define _auxforeach(it, b, e) for(_auto(it, b), _itend = e; it != _itend; ++it)
8 #define foreach(it, r...) _auxforeach(it, r)
9 
10 #endif // PRIV_H