От: | Centaur | ||
Дата: | 18.10.05 19:28 | ||
Оценка: | 24 (1) |
#include <cmath>
#include <algorithm>
#include <boost/lambda/lambda.hpp>
#include <boost/lambda/bind.hpp>
std::sort(begin, end,
boost::lambda::bind(std::abs, boost::lambda::_1) < boost::lambda::bind(std::abs, boost::lambda::_2));