![]() |
Multilevel Deduplication Engine (MDE)
|
Describes an optional of some type T. The value may either be present or absent. More...
#include <mde_common.hpp>
Public Member Functions | |
| Optional (const T &value) | |
| bool | is_present () |
| Informs if the value is present. | |
| const T & | get () |
| Gets the underlying value. Throws an exception if it is absent. | |
Static Public Member Functions | |
| static Optional | absent () |
| Explicitly creates an absent value. | |
Describes an optional of some type T. The value may either be present or absent.
| T | The type. |
Definition at line 163 of file mde_common.hpp.
|
inline |
Definition at line 170 of file mde_common.hpp.
|
inlinestatic |
Explicitly creates an absent value.
Definition at line 173 of file mde_common.hpp.
Referenced by mde::MapAdapter< MapClass >::find().
|
inline |
Gets the underlying value. Throws an exception if it is absent.
Definition at line 183 of file mde_common.hpp.
|
inline |
Informs if the value is present.
Definition at line 178 of file mde_common.hpp.