Helper supplying the default value returned by Util::Map when a queried key is absent.
More...
#include <Map.hpp>
|
| static const ValueType & | get () |
| | Returns a const reference to the shared default-constructed value. More...
|
| |
|
| static const ValueType | defValue = ValueType() |
| | The default-constructed value returned for an absent key. More...
|
| |
template<typename ValueType, bool Allow = true>
struct CDPL::Util::MapDefaultValue< ValueType, Allow >
Helper supplying the default value returned by Util::Map when a queried key is absent.
- Template Parameters
-
| ValueType | The type of the mapped values. |
| Allow | Whether returning a default value is allowed (true) or shall raise an error (false). |
◆ get()
template<typename ValueType , bool Allow = true>
Returns a const reference to the shared default-constructed value.
- Returns
- A
const reference to the default value.
◆ defValue
template<typename ValueType , bool Allow>
The default-constructed value returned for an absent key.
The documentation for this struct was generated from the following file: