Extracting pair member in lambda expressions and template typedef idiom?

Two issues. The thing that you are going after (element::value) is not a typename. However, firstly you'll need nested binds: one to access _1.

First and another one to access the value of the previous. Without the typedefs: std::find_if( container.begin(), container.end(), bind( &element::value, bind(&std::pair::first, boost::lambda::_1) ) == value ); And so, with your idiom, without the unnecessary typename: std::find_if( container.begin(), container.end(), bind( &vector_containter::type::value_type::first_type::value, bind( &vector_containter::type::value_type::first, boost::lambda::_1) ) == value ); This doesn't seem particularly readable, though. Perhaps a) wait for C++0x lambda, b) write a specific functor for the find_if call, c) just do a manual loop.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions