
8 Jul
2008
8 Jul
'08
6:54 a.m.
Hello, struct Inner { bool good() const; }; struct Outer { Inner inner_; const Inner &inner() const { return inner_; } }; std::vector<Outer> outers; I'd like to find Outer whose Inner is good(): std::find_if(outers.begin(), outers.end(), ?); How should I use boost::bind or boost::lambda to tell the stl algorithms to call Inner::good()? Thank you in advance!