#include #include "boost/shared_ptr.hpp" #include #include //using namespace boost::lambda; //using namespace std; int main() { std::vector > as; std::max_element(as.begin(), as.end(), boost::lambda::bind(&std::vector::size, boost::lambda::_1) < boost::lambda::bind(&std::vector::size, boost::lambda::_2)); }