55 template<
typename ValueType>
56 any(
const ValueType & value)
79 template<
typename ValueType>
99 const std::type_info &
type()
const
116 virtual const std::type_info &
type()
const = 0;
122 template<
typename ValueType>
134 virtual const std::type_info &
type()
const
136 return typeid(ValueType);
152 template<
typename ValueType>
162 virtual const char *
what()
const throw()
164 return "boost::bad_any_cast: "
165 "failed conversion using boost::any_cast";
169 template<
typename ValueType>
172 return operand && operand->
type() ==
typeid(ValueType)
177 template<
typename ValueType>
180 return any_cast<ValueType>(
const_cast<any *
>(operand));
183 template<
typename ValueType>
186 const ValueType * result = any_cast<ValueType>(&operand);
ValueType held
Definition: any.h:146
virtual const std::type_info & type() const
Definition: any.h:134
holder(const ValueType &value)
Definition: any.h:127
virtual placeholder * clone() const
Definition: any.h:139
virtual ~placeholder()
Definition: any.h:110
virtual const std::type_info & type() const =0
virtual placeholder * clone() const =0
any(const ValueType &value)
Definition: any.h:56
any & operator=(const ValueType &rhs)
Definition: any.h:80
friend ValueType * any_cast(any *)
Definition: any.h:170
const std::type_info & type() const
Definition: any.h:99
any & swap(any &rhs)
Definition: any.h:73
any(const any &other)
Definition: any.h:61
placeholder * content
Definition: any.h:155
~any()
Definition: any.h:66
any & operator=(const any &rhs)
Definition: any.h:86
bool empty() const
Definition: any.h:94
any()
Definition: any.h:50
virtual const char * what() const
Definition: any.h:162
Definition: activation.cpp:29
ValueType * any_cast(any *operand)
Definition: any.h:170