LIBINT  2.6.0
Classes | Public Member Functions | Friends | List of all members
libint2::any Class Reference

a partial C++17 std::any implementation (and less efficient than can be) More...

#include <any.h>

Public Member Functions

 any (const any &other)
 
 any (any &&other)=default
 
template<typename ValueType , typename = detail::disable_if_same_or_derived<any, ValueType>>
 any (ValueType &&value)
 
anyoperator= (const any &rhs)
 
anyoperator= (any &&rhs)
 
template<typename ValueType , typename = detail::disable_if_same_or_derived<any, ValueType>>
anyoperator= (ValueType &&rhs)
 
template<class ValueType , class... Args>
std::decay< ValueType >::type & emplace (Args &&... args)
 
template<class ValueType , class U , class... Args>
std::decay< ValueType >::type & emplace (std::initializer_list< U > il, Args &&... args)
 
void reset ()
 
void swap (any &other)
 
bool has_value () const
 
const std::type_info & type () const
 

Friends

template<typename ValueType >
std::decay< ValueType >::type * any_cast (any *operand)
 
template<typename ValueType >
const std::decay< ValueType >::type * any_cast (const any *operand)
 

Detailed Description

a partial C++17 std::any implementation (and less efficient than can be)


The documentation for this class was generated from the following file: