#include <yat/utility/stl_utility.h>
Public Member Functions | |
bool | operator() (const std::pair< T1, T2 > &x, const std::pair< T1, T2 > &y) |
STL provides operator< for the pair.first element, but none for pair.second. This template provides this and can be used as the comparison object in generic functions such as the STL sort.
bool theplu::yat::utility::pair_value_compare< T1, T2 >::operator() | ( | const std::pair< T1, T2 > & | x, | |
const std::pair< T1, T2 > & | y | |||
) | [inline] |