FEI Package Browser (Single Doxygen Collection)
Version of the Day
Loading...
Searching...
No Matches
base
snl_fei_MapTraits.hpp
Go to the documentation of this file.
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
snl_fei
Definition
fei_MatrixGraph_Impl2.cpp:46
snl_fei::MapTraits
Definition
snl_fei_MapTraits.hpp:23
snl_fei::MapTraits::insert
static void insert(MAP_TYPE &map_obj, typename MAP_TYPE::iterator &pos, typename MAP_TYPE::value_type &val)
Definition
snl_fei_MapTraits.hpp:31
snl_fei::MapTraits::lower_bound
static MAP_TYPE::iterator lower_bound(MAP_TYPE &map_obj, typename MAP_TYPE::key_type item)
Definition
snl_fei_MapTraits.hpp:26
Generated by
1.10.0