create NEAT app repo

This commit is contained in:
swaits committed 2010-09-30 15:23:17 -07:00
commit 9cd2d19fb9
34 files changed
+4454

No files matched your search

+11
View File
@@ -0,0 +1,11 @@
#ifndef __IteratorHelper_h__
#define __IteratorHelper_h__
// code Ruby for awhile and C++ iterators start to look crude and disgusting
#define iterate_each( iterator_type, iterator_name, container ) \
for ( iterator_type iterator_name = container.begin(); iterator_name != container.end(); ++iterator_name )
#define iterate_times( x ) \
for ( unsigned int i__LINE__ = 0; i__LINE__ < (x); ++i__LINE__ )
#endif // __IteratorHelper_h__