lobot::map_value_comp< M, C > Class Template Reference

#include <Robots/LoBot/util/LoSTL.H>

List of all members.

Public Member Functions

 map_value_comp (const C &c)
bool operator() (const value_type &A, const value_type &B) const

Detailed Description

template<typename M, typename C>
class lobot::map_value_comp< M, C >

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.


The documentation for this class was generated from the following file:
Generated on Sun May 8 08:30:51 2011 for iLab Neuromorphic Vision Toolkit by  doxygen 1.6.3