![]() |
LatticeHashForest
|
Describes an optional reference of some type T. The value may either be present or absent. More...
#include <lhf.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. |
|
inline |
|
inlinestatic |
|
inline |
|
inline |