C , for , :
int arr[MAX];
for (int* p = arr; p < arr + MAX; ++p)
{
do_something_with(*p);
}
, . - , , - .. - , ++.
++ , .
std::set<int> s;
for (std::set<int>::const_iterator it = s.begin(); it != s.end(); ++it)
{
do_something_with(*it);
}
std::set<T>::const_iterator - , ++ * , . ++ (-) , .
std::vector std::string , , typedefs .
, . , find, .