|
Ditto 4.5.0
|
Polyfill of std::any for C++11.
More...
#include <any.hpp>
Public Member Functions | |
| template<typename T > | |
| any (T const &value) noexcept | |
| any (any const &other) noexcept | |
| void | swap (any &other) noexcept |
| any & | operator= (any const &other) noexcept |
| std::type_info const & | type () const noexcept |
| bool | has_value () const noexcept |
| template<typename T > | |
| T | as () const |
Polyfill of std::any for C++11.
Diverges from std::any w.r.t. the std::any_cast<TargetType>(any) API, which has been replaced by a any.as<TargetType>() method API for convenience.