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);
~any()
Definition: any.h:66
virtual placeholder * clone() const
Definition: any.h:139
any & swap(any &rhs)
Definition: any.h:73
any()
Definition: any.h:50
friend ValueType * any_cast(any *)
Definition: any.h:170
any & operator=(const any &rhs)
Definition: any.h:86
placeholder * content
Definition: any.h:155
virtual placeholder * clone() const =0
ValueType * any_cast(any *operand)
Definition: any.h:170
Definition: activation.cpp:29
any & operator=(const ValueType &rhs)
Definition: any.h:80
bool empty() const
Definition: any.h:94
virtual const std::type_info & type() const =0
const std::type_info & type() const
Definition: any.h:99
virtual ~placeholder()
Definition: any.h:110
any(const any &other)
Definition: any.h:61
any(const ValueType &value)
Definition: any.h:56
ValueType held
Definition: any.h:146
virtual const char * what() const
Definition: any.h:162
virtual const std::type_info & type() const
Definition: any.h:134
holder(const ValueType &value)
Definition: any.h:127