3.4.0
tigl::disable_adl::any Class Reference

A class that can hold any other object. Similar to boost::any but includes also a from_string method. More...

#include <any.h>

Data Structures

class  any_concept
 
class  any_conceptImpl
 

Public Member Functions

 any ()
 Creates an empty element. More...
 
template<class T >
 any (const T &t)
 Creates an element holding the value t. More...
 
 any (const any &other)
 
bool empty () const
 Tests, whether the element is empty or not. More...
 
anyoperator= (const any &other)
 
template<class to_value >
to_value const * to_ptr () const
 
const std::type_info & type () const
 
 ~any ()
 

Private Attributes

any_conceptpimpl
 

Friends

void from_string (const std::string &s, any &a)
 

Detailed Description

A class that can hold any other object. Similar to boost::any but includes also a from_string method.

Constructor & Destructor Documentation

◆ any() [1/3]

tigl::disable_adl::any::any ( )
inline

Creates an empty element.

◆ any() [2/3]

template<class T >
tigl::disable_adl::any::any ( const T &  t)
inline

Creates an element holding the value t.

◆ any() [3/3]

tigl::disable_adl::any::any ( const any other)
inline

◆ ~any()

tigl::disable_adl::any::~any ( )
inline

Member Function Documentation

◆ empty()

bool tigl::disable_adl::any::empty ( ) const
inline

Tests, whether the element is empty or not.

◆ operator=()

any& tigl::disable_adl::any::operator= ( const any other)
inline

◆ to_ptr()

template<class to_value >
to_value const* tigl::disable_adl::any::to_ptr ( ) const
inline

◆ type()

const std::type_info& tigl::disable_adl::any::type ( ) const
inline

Friends And Related Function Documentation

◆ from_string

void from_string ( const std::string &  s,
any a 
)
friend

Field Documentation

◆ pimpl

any_concept* tigl::disable_adl::any::pimpl
private

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