FEI
Version of the Day
|
#include <snl_fei_MapTraits.hpp>
Static Public Member Functions | |
static MAP_TYPE::iterator | lower_bound (MAP_TYPE &map_obj, typename MAP_TYPE::key_type item) |
static void | insert (MAP_TYPE &map_obj, typename MAP_TYPE::iterator &pos, typename MAP_TYPE::value_type &val) |
Define map traits. For now, only a trait for map.lower_bound and map.insert. Generally we simply call the corresponding methods on std::map, but these traits will be specialized for map classes that may not always have directly equivalent methods (such as hash_map, etc.). (hash_map doesn't have lower_bound, and hash_map's insert doesn't allow the use of an iterator argument to hint where the object should be inserted.)
Definition at line 23 of file snl_fei_MapTraits.hpp.
|
inlinestatic |
lower_bound
Definition at line 26 of file snl_fei_MapTraits.hpp.
|
inlinestatic |
insert a value using iterator for position hint
Definition at line 31 of file snl_fei_MapTraits.hpp.