![]() |
Multilevel Deduplication Engine (MDE)
|
Describes an optional reference of some type T. The value may either be present or absent. More...
#include <mde_common.hpp>
Public Member Functions | |
| OptionalRef (const T &value) | |
| bool | is_present () const |
| 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 OptionalRef | absent () |
| Explicitly creates an absent value. | |
Describes an optional reference of some type T. The value may either be present or absent.
| T | The type. |
Definition at line 128 of file mde_common.hpp.
|
inline |
Definition at line 133 of file mde_common.hpp.
|
inlinestatic |
Explicitly creates an absent value.
Definition at line 136 of file mde_common.hpp.
|
inline |
Gets the underlying value. Throws an exception if it is absent.
Definition at line 146 of file mde_common.hpp.
|
inline |
Informs if the value is present.
Definition at line 141 of file mde_common.hpp.