snl_fei_MapTraits.hpp

00001 #ifndef _snl_fei_MapTraits_hpp_
00002 #define _snl_fei_MapTraits_hpp_
00003 
00004 /*--------------------------------------------------------------------*/
00005 /*    Copyright 2005 Sandia Corporation.                              */
00006 /*    Under the terms of Contract DE-AC04-94AL85000, there is a       */
00007 /*    non-exclusive license for use of this work by or on behalf      */
00008 /*    of the U.S. Government.  Export of this program may require     */
00009 /*    a license from the United States Government.                    */
00010 /*--------------------------------------------------------------------*/
00011 
00012 namespace snl_fei {
00013 
00022 template<typename MAP_TYPE>
00023 struct MapTraits {
00025   static typename MAP_TYPE::iterator
00026     lower_bound(MAP_TYPE& map_obj,
00027                 typename MAP_TYPE::key_type item)
00028   { return( map_obj.lower_bound(item) ); }
00029 
00031   static void insert(MAP_TYPE& map_obj,
00032                      typename MAP_TYPE::iterator& pos,
00033                      typename MAP_TYPE::value_type& val)
00034   { map_obj.insert(pos, val); }
00035 };
00036 
00037 }//namespace snl_fei
00038 #endif
00039 

Generated on Tue Jul 13 09:27:46 2010 for FEI by  doxygen 1.4.7