General purpose tools for handling values and keys of std::map<>
More...
#include <SmartMapTools.h>
|
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...
|
|
General purpose tools for handling values and keys of std::map<>
◆ 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: