1 #ifndef _snl_fei_MapTraits_specialize_hpp_
2 #define _snl_fei_MapTraits_specialize_hpp_
18 #if defined(FEI_HASH_MAP) && defined(FEI_HASH_SET)
20 struct MapTraits<FEI_HASH_MAP<int,FEI_HASH_SET<int>*> > {
21 static FEI_HASH_MAP<int,FEI_HASH_SET<int>*>::iterator
22 lower_bound(FEI_HASH_MAP<
int,FEI_HASH_SET<int>*>& map_obj,
24 {
return( map_obj.find(item) ); }
26 static void insert(FEI_HASH_MAP<
int,FEI_HASH_SET<int>*>& map_obj,
27 FEI_HASH_MAP<
int,FEI_HASH_SET<int>*>::iterator& pos,
28 FEI_HASH_MAP<
int,FEI_HASH_SET<int>*>::value_type& val)
29 { map_obj.insert(val); }
33 #if defined(FEI_HASH_MAP)
36 struct MapTraits<FEI_HASH_MAP<int,fei::ctg_set<int>*> >
38 static FEI_HASH_MAP<int,fei::ctg_set<int>*>::iterator
40 {
return( map_obj.find(item) ); }
45 { map_obj.insert(val); }};
48 struct MapTraits<FEI_HASH_MAP<int,std::set<int>*> > {
49 static FEI_HASH_MAP<int,std::set<int>*>::iterator
50 lower_bound(FEI_HASH_MAP<
int,std::set<int>*>& map_obj,
52 {
return( map_obj.find(item) ); }
54 static void insert(FEI_HASH_MAP<
int,std::set<int>*>& map_obj,
55 FEI_HASH_MAP<
int,std::set<int>*>::iterator& pos,
56 FEI_HASH_MAP<
int,std::set<int>*>::value_type& val)
57 { map_obj.insert(val); }
static void insert(MAP_TYPE &map_obj, typename MAP_TYPE::iterator &pos, typename MAP_TYPE::value_type &val)
static MAP_TYPE::iterator lower_bound(MAP_TYPE &map_obj, typename MAP_TYPE::key_type item)