From: Goran Pusic on
On Dec 7, 8:52 pm, Andrew <marlow.and...(a)googlemail.com> wrote:
> Subject says it all really.

I guess because

std::for_each(container.begin(), container.end(), IteratorFunctor);

is generic enough to C++ people. So is

for (container_type::iterator pItem=container.begin();
pItem != container.end();
++pItem)
{ /*generic iteration!*/ }

Sure, it's compile-time polymorphism, but why do you care it ain't run-
time one?

Goran.


--
[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ]