S
sks_cpp
The for_each library function - does it throw any exceptions if the functor
you pass it DOESN'T throw anything.
Example:
class Functor
{
bool operator()(int a) { if (a>10) return true; }
};
std::list<int> intList; // contains some integers in the container
for_each( intList.begin(), intList.end(), Functor() );
you pass it DOESN'T throw anything.
Example:
class Functor
{
bool operator()(int a) { if (a>10) return true; }
};
std::list<int> intList; // contains some integers in the container
for_each( intList.begin(), intList.end(), Functor() );