Loading

Paste #p56sxxuto

  1. #include <memory>
  2. #include "boost/shared_ptr.hpp"
  3.  
  4. #include <boost/lambda/lambda.hpp>
  5. #include <boost/lambda/bind.hpp>
  6.  
  7. //using namespace boost::lambda;
  8. //using namespace std;
  9.  
  10. int main()
  11. {
  12.     std::vector<std::vector<std::string> > as;
  13.     std::max_element(as.begin(), as.end(), boost::lambda::bind(&std::vector<std::string>::size, boost::lambda::_1) < boost::lambda::bind(&std::vector<std::string>::size, boost::lambda::_2));
  14. }

Comments