Lumiera
0.pre.03
»edit your freedom«
|
#include "lib/access-casted.hpp"
Helper template to access a given value, possibly converted or casted in a safe way.
Definition at line 143 of file access-casted.hpp.
Public Types | |
typedef TAR | Ret |
Static Public Member Functions | |
template<typename SRC > | |
static if_can_use_dynamic_downcast< SRC &&, TAR >::type | access (SRC &&elem) |
template<typename SRC > | |
static if_can_use_conversion< SRC &&, TAR >::type | access (SRC &&elem) |
template<typename SRC > | |
static if_can_take_address< SRC &&, TAR >::type | access (SRC &&elem) |
template<typename SRC > | |
static if_can_dereference< SRC &&, TAR >::type | access (SRC &&elem) |
static TAR | access (...) |
catch-all to signal failure of conversion | |