[boost] Re: find_if

2003-01-16 Thread Markus Pesti
"David Abrahams" <[EMAIL PROTECTED]> schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Or you can use the indirect iterator adaptor from the boost sandbox (boost/iterator/iterator_adaptors.hpp) > > bool find(const std::list >& Alist, int v) { > return stdfind_if( >

[boost] find_if

2003-01-16 Thread Markus Pesti
I can't find any good documentation about boost::mpl::find_if. The syntax is different to that of std::find_if and std::find_if cannot be applied to lists of boost::shared_ptr's. So I created my own find_if by modifying the std one.: #include #include #include namespace my { template InputIt