#include <safe_any.hpp>
|
| Any () |
|
| Any (const double &value) |
|
| Any (const uint64_t &value) |
|
| Any (const float &value) |
|
| Any (const std::string &str) |
|
template<typename T > |
| Any (const T &value, EnableIntegral< T >=0) |
|
template<typename T > |
| Any (const T &value, EnableNonIntegral< T >=0) |
|
template<typename T > |
T | cast () const |
|
const std::type_info & | type () const noexcept |
|
| ~Any ()=default |
|
|
template<typename T > |
using | EnableArithmetic = typename std::enable_if< std::is_arithmetic< T >::value >::type * |
|
template<typename T > |
using | EnableEnum = typename std::enable_if< std::is_enum< T >::value >::type * |
|
template<typename T > |
using | EnableIntegral = typename std::enable_if< std::is_integral< T >::value||std::is_enum< T >::value >::type * |
|
template<typename T > |
using | EnableNonIntegral = typename std::enable_if<!std::is_integral< T >::value &&!std::is_enum< T >::value >::type * |
|
template<typename T > |
using | EnableString = typename std::enable_if< std::is_same< T, std::string >::value >::type * |
|
template<typename T > |
using | EnableUnknownType = typename std::enable_if<!std::is_arithmetic< T >::value &&!std::is_enum< T >::value &&!std::is_same< T, std::string >::value >::type * |
|
Definition at line 19 of file safe_any.hpp.
SafeAny::Any::Any |
( |
const double & |
value | ) |
|
|
inline |
SafeAny::Any::Any |
( |
const uint64_t & |
value | ) |
|
|
inline |
SafeAny::Any::Any |
( |
const float & |
value | ) |
|
|
inline |
SafeAny::Any::Any |
( |
const std::string & |
str | ) |
|
|
inline |
template<typename T >
T SafeAny::Any::cast |
( |
| ) |
const |
|
inline |
template<typename DST >
DST SafeAny::Any::convert |
( |
EnableEnum< DST > |
= 0 | ) |
const |
|
inlineprivate |
template<typename T >
std::runtime_error SafeAny::Any::errorMsg |
( |
| ) |
const |
|
inlineprivate |
const std::type_info& SafeAny::Any::type |
( |
| ) |
const |
|
inlinenoexcept |
The documentation for this class was generated from the following file: