Static Public Member Functions | List of all members
MapTools Class Reference

General purpose tools for handling values and keys of std::map<> More...

#include <SmartMapTools.h>

Inheritance diagram for MapTools:
Inheritance graph
[legend]

Static Public Member Functions

template<class M >
static const M::mapped_type & get (const M &m, const typename M::key_type &key)
 If the key is found, the value is returned as a reference. More...
 
template<class M , class F >
static void get (const M &m, const typename M::key_type &key, F &value)
 If the key is found, the value is assigned. More...
 

Detailed Description

General purpose tools for handling values and keys of std::map<>

Member Function Documentation

◆ get() [1/2]

static const M::mapped_type& get ( const M &  m,
const typename M::key_type &  key 
)
inlinestatic

If the key is found, the value is returned as a reference.

Parameters
m- map in which keys are searched
Template Parameters
M- map type
F- target value type

◆ get() [2/2]

static void get ( const M &  m,
const typename M::key_type &  key,
F &  value 
)
inlinestatic

If the key is found, the value is assigned.

Parameters
m- map in which keys are searched
Template Parameters
M- map type
F- target value type

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