From: Goran Pusic on 8 Dec 2009 08:52 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! ]
First
|
Prev
|
Pages: 1 2 Prev: C++ library that offers tensors? Next: Dependent function templates and overloaded functions |