Ditto 4.8.0-rc.2
Loading...
Searching...
No Matches
ditto::any Class Reference

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
 
anyoperator= (any const &other) noexcept
 
std::type_info const & type () const noexcept
 
bool has_value () const noexcept
 
template<typename T >
as () const
 

Detailed Description

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.