Boost logo

Boost Users :

From: Markus Werle (yg-boost-users_at_[hidden])
Date: 2003-06-24 06:40:15


Hi!

I would like to write code like

int main()
{
  namespace l = boost::lambda;
  std::map<int, double> M;
  M[1] = 5.0;
  M[3] = 7.0;

  std::for_each(M.begin(), M.end(),
                l::select2nd(l::_1) *= 6.0);
}

Is it hard to implement this for boost::lambda?

Markus


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