Ditto 4.6.0
Loading...
Searching...
No Matches
Public Member Functions | List of all members
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 consttype () const noexcept
 
bool has_value () const noexcept
 
template<typename T >
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.