От: | Voivoid | ||
Дата: | 12.01.11 16:56 | ||
Оценка: |
auto comparator = boost::bind( &std::pair<int,int>::first, _1 ) < boost::bind( &std::pair<int,int>::first, _2 );
std::map<std::pair<int, int>, std::string, BOOST_TYPEOF( comparator )> map ( comparator );