|
openPMD-api
|
Simple Option type based on variantSrc::variant. More...
#include <Option.hpp>
Public Member Functions | |
| Option () | |
| Create an empty Option. | |
| Option (T data) | |
| Create a full Option. More... | |
| Option (Option const &other)=default | |
| Option & | operator= (Option &&other) |
| Option & | operator= (Option const &other) |
| bool | operator== (Option const &other) const |
| bool | operator!= (Option const &other) const |
| bool | has_value () const |
| operator bool () const | |
| const T & | get () const |
| Access the emplaced object if one is present. More... | |
| T & | get () |
| Access the emplaced object if one is present. More... | |
Simple Option type based on variantSrc::variant.
| T | Type that can be optionally stored in an Optional object. |
|
inline |
|
inline |
Access the emplaced object if one is present.
| std::bad_variant_access | if no object is present. |
|
inline |
Access the emplaced object if one is present.
| std::bad_variant_access | if no object is present. |
|
inline |
|
inline |
1.8.17