|
SPH
|
Wrapper of type value of which may or may not be present. More...
#include "common/Assert.h"#include "common/Traits.h"#include "objects/wrappers/AlignedStorage.h"#include <type_traits>Go to the source code of this file.
Classes | |
| struct | NothingType |
| class | Optional< Type > |
| Wrapper of type value of which may or may not be present. More... | |
Functions | |
| template<typename T1 , typename T2 > | |
| Optional< T1 > | optionalCast (const Optional< T2 > &opt) |
| template<typename T > | |
| bool | operator== (const Optional< T > &opt, const T &t) |
| template<typename T > | |
| bool | operator== (const T &t, const Optional< T > &opt) |
| template<typename T > | |
| bool | operator== (const Optional< T > &opt1, const Optional< T > &opt2) |
| Achtung! Even if both optionals are uninitialized, the comparison returns false. More... | |
| template<typename T > | |
| bool | operator== (const Optional< T > &opt, const NothingType &) |
Variables | |
| const NothingType | NOTHING |
Wrapper of type value of which may or may not be present.
Definition in file Optional.h.
| bool operator== | ( | const Optional< T > & | opt, |
| const NothingType & | |||
| ) |
Definition at line 269 of file Optional.h.
| bool operator== | ( | const Optional< T > & | opt, |
| const T & | t | ||
| ) |
Definition at line 243 of file Optional.h.
Achtung! Even if both optionals are uninitialized, the comparison returns false.
Definition at line 260 of file Optional.h.
| bool operator== | ( | const T & | t, |
| const Optional< T > & | opt | ||
| ) |
Definition at line 251 of file Optional.h.
Definition at line 235 of file Optional.h.
| const NothingType NOTHING |
Definition at line 16 of file Optional.h.