#include <Robots/LoBot/util/LoSTL.H>
Public Member Functions | |
map_value_comp (const C &c) | |
bool | operator() (const value_type &A, const value_type &B) const |
By default, STL maps compare keys when used with various STL algorithms such as min_element and max_element. This function object performs the comparison by comparing the values stored in the map rather than its keys. It uses the supplied comparator function or function object rather than the < operator to perform comparisons.
NOTE: The type M is expected to be an std::map. The type C should be a comparator function object such as std::less or std::greater.
Definition at line 236 of file LoSTL.H.