Visual Computing Library
|
The PairComparator struct is an utility comparator to allow to sort pairs in lexical order. More...
#include <vclib/misc/comparators.h>
Public Member Functions | |
bool | operator() (const Pair &p1, const Pair &p2) const |
The PairComparator struct is an utility comparator to allow to sort pairs in lexical order.
It first compare the first element, and in case they are equal it compares the second element.