Re: [Boost-users] Writing a more readable code

15 Sep
2006
15 Sep
'06
7:08 p.m.
-----Original Message----- From: boost-users-bounces@lists.boost.org [mailto:boost-users- bounces@lists.boost.org] On Behalf Of me22 Sent: Friday, September 15, 2006 2:55 PM To: boost-users@lists.boost.org Subject: Re: [Boost-users] Writing a more readable code
use an iterator adapter that returns base_itr->second when dereferenced. I hear that it's simple to make one with Boost.Iterator.
You'd then just do std::for_each( seconder(a.begin()), seconder(a.end()), boost::bind(f,_1) );
[Nat] The need to adapt each of a.begin() and a.end() bothers me. (I've dealt with similar but more complex situations.) Is there a nice way to combine Boost.Iterator adaptors with Boost.Range to express this less redundantly?
6737
Age (days ago)
6737
Last active (days ago)
0 comments
1 participants
participants (1)
-
Nat Goodspeed