FEI Package Browser (Single Doxygen Collection) Version of the Day
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
snl_fei::MapTraits< MAP_TYPE > Struct Template Reference

#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)
 

Detailed Description

template<typename MAP_TYPE>
struct snl_fei::MapTraits< MAP_TYPE >

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.

Member Function Documentation

◆ lower_bound()

template<typename MAP_TYPE >
static MAP_TYPE::iterator snl_fei::MapTraits< MAP_TYPE >::lower_bound ( MAP_TYPE & map_obj,
typename MAP_TYPE::key_type item )
inlinestatic

◆ insert()

template<typename MAP_TYPE >
static void snl_fei::MapTraits< MAP_TYPE >::insert ( MAP_TYPE & map_obj,
typename MAP_TYPE::iterator & pos,
typename MAP_TYPE::value_type & val )
inlinestatic

insert a value using iterator for position hint

Definition at line 31 of file snl_fei_MapTraits.hpp.

Referenced by snl_fei::RaggedTable< MAP_TYPE, SET_TYPE >::addIndices(), and snl_fei::RaggedTable< MAP_TYPE, SET_TYPE >::addIndices().


The documentation for this struct was generated from the following file: