|
BALL
1.4.1
|
Go to the source code of this file.
Defines | |
| #define | BALL_FOREACH(container, element_iterator) |
| #define BALL_FOREACH | ( | container, | |
| element_iterator | |||
| ) |
for (element_iterator = container.begin(); \
!element_iterator.isEnd(); \
++element_iterator)
Container Iteration Macro. Use this macro for convenient iteration over BALL container classes.
HashMap<int,int> hm;
HashMap<int,int>::Iterator it;
BALL_FOREACH(p,it)
{
cout << it->first << endl;
}
| container | an instance of a BALL container class |
| element_iterator | an iterator of the container class |
Definition at line 29 of file DATATYPE/forEach.h.
1.7.6.1