My Project
|
A simple class which only stores a given member attribute if a boolean condition is true. More...
#include <ConditionalStorage.hpp>
Public Types | |
typedef T | type |
Public Member Functions | |
ConditionalStorage (const T &v) | |
ConditionalStorage (T &&v) | |
template<class ... Args> | |
ConditionalStorage (Args... args) | |
ConditionalStorage (const ConditionalStorage &t) | |
ConditionalStorage (ConditionalStorage &&t) | |
ConditionalStorage & | operator= (const ConditionalStorage &v) |
ConditionalStorage & | operator= (ConditionalStorage &&v) |
const T & | operator* () const |
T & | operator* () |
const T * | operator-> () const |
T * | operator-> () |
Static Public Attributes | |
static constexpr bool | condition = cond |
A simple class which only stores a given member attribute if a boolean condition is true.
If the condition is false, nothing is stored and an exception is thrown when trying to access the object.