Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
C++
These template things are good...right?
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Steven T. Hatton, post: 2591524"] That can be accomplished by providing an alternative interface to the same underlying collection. The Java thing to do would be "slap an interface on it" or "wrap it up in a collection interface". The big difference as I see it is that std::for_each takes functionality as an argument, whereas the conventional for-each construct has a body consisting of a block of code. IMO, boost::lambda is a path to becoming an academic niche language. That is something worth looking into. [URL]http://www.boost.org/regression-logs/cs-win32_metacomm/doc/html/foreach.html[/URL] I'm not sure what the fate of the proposed C++ for_each core language extension will be, but from what I've seen, it's the only fully satisfying approach. [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
C++
These template things are good...right?
Top