Boost logo

Boost Users :

From: Igor R (boost.lists_at_[hidden])
Date: 2008-07-08 02:54:15


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!


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net