G
George2
Hello everyone,
I can not find related information in MSDN, so I want to confirm here,
that,
the implementation of for_each is something like,
So, operator(*A) of class Func will be invoked? Right?
thanks in advance,
George
I can not find related information in MSDN, so I want to confirm here,
that,
the implementation of for_each is something like,
Code:
template <class A, class B> B for_each (A begin, A end, B Func)
{
while (begin != end) Func(*begin++);
return Func;
}
So, operator(*A) of class Func will be invoked? Right?
thanks in advance,
George