FEI  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
snl_fei_MapTraits.hpp
1 #ifndef _snl_fei_MapTraits_hpp_
2 #define _snl_fei_MapTraits_hpp_
3 
4 /*--------------------------------------------------------------------*/
5 /* Copyright 2005 Sandia Corporation. */
6 /* Under the terms of Contract DE-AC04-94AL85000, there is a */
7 /* non-exclusive license for use of this work by or on behalf */
8 /* of the U.S. Government. Export of this program may require */
9 /* a license from the United States Government. */
10 /*--------------------------------------------------------------------*/
11 
12 namespace snl_fei {
13 
22 template<typename MAP_TYPE>
23 struct MapTraits {
25  static typename MAP_TYPE::iterator
26  lower_bound(MAP_TYPE& map_obj,
27  typename MAP_TYPE::key_type item)
28  { return( map_obj.lower_bound(item) ); }
29 
31  static void insert(MAP_TYPE& map_obj,
32  typename MAP_TYPE::iterator& pos,
33  typename MAP_TYPE::value_type& val)
34  { map_obj.insert(pos, val); }
35 };
36 
37 }//namespace snl_fei
38 #endif
39 
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)