T
thinktwice
here is what i what to do;
//pesudo code
iter = container.begin();
while (iter != container.end())
{
myclass *obj =my_cast (*iter);
obj->func(arg1, arg2);
}
i want to simplify those code just like this:
std::for_each(conatiner.begin(), conatiner.end(), ???)
is it possible? how to achieve?
thanks in advance
//pesudo code
iter = container.begin();
while (iter != container.end())
{
myclass *obj =my_cast (*iter);
obj->func(arg1, arg2);
}
i want to simplify those code just like this:
std::for_each(conatiner.begin(), conatiner.end(), ???)
is it possible? how to achieve?
thanks in advance