Go to the documentation of this file.
3 #ifndef BOOST_ANY_INCLUDED
4 #define BOOST_ANY_INCLUDED
45 template<
typename ValueType>
46 any(
const ValueType & value)
58 #ifndef BOOST_NO_CXX11_RVALUE_REFERENCES
67 template<
typename ValueType>
90 #ifdef BOOST_NO_CXX11_RVALUE_REFERENCES
91 template<
typename ValueType>
100 any(rhs).swap(*
this);
107 any(rhs).swap(*
this);
120 template <
class ValueType>
123 any(
static_cast<ValueType&&
>(rhs)).swap(*
this);
145 #ifndef BOOST_NO_MEMBER_TEMPLATE_FRIENDS
167 template<typename ValueType>
177 #ifndef BOOST_NO_CXX11_RVALUE_REFERENCES
179 : held(static_cast< ValueType&& >(value))
187 return boost::typeindex::type_id<ValueType>().type_info();
203 #ifndef BOOST_NO_MEMBER_TEMPLATE_FRIENDS
207 template<
typename ValueType>
210 template<
typename ValueType>
229 #ifndef BOOST_NO_RTTI
232 public std::exception
238 return "boost::bad_any_cast: "
239 "failed conversion using boost::any_cast";
243 template<
typename ValueType>
246 return operand && operand->type() == boost::typeindex::type_id<ValueType>()
251 template<
typename ValueType>
254 return any_cast<ValueType>(
const_cast<any *
>(operand));
257 template<
typename ValueType>
263 nonref * result = any_cast<nonref>(&operand);
277 return static_cast<ref_type
>(*result);
280 template<
typename ValueType>
284 return any_cast<const nonref &>(
const_cast<any &
>(operand));
287 #ifndef BOOST_NO_CXX11_RVALUE_REFERENCES
288 template<
typename ValueType>
294 "boost::any_cast shall not be used for getting nonconst references to temporary objects"
296 return any_cast<ValueType>(operand);
306 template<
typename ValueType>
312 template<
typename ValueType>
315 return unsafe_any_cast<ValueType>(
const_cast<any *
>(operand));
void swap(any &lhs, any &rhs) BOOST_NOEXCEPT
any(any &&other) BOOST_NOEXCEPT
any & swap(any &rhs) BOOST_NOEXCEPT
#define BOOST_STATIC_ASSERT_MSG(...)
holder(const ValueType &value)
holder(ValueType &&value)
any(ValueType &&value, typename boost::disable_if< boost::is_same< any &, ValueType > >::type *=0, typename boost::disable_if< boost::is_const< ValueType > >::type *=0)
any & operator=(any &&rhs) BOOST_NOEXCEPT
any & operator=(const any &rhs)
BOOST_NORETURN void throw_exception(E const &e)
BOOST_MOVE_USE_STANDARD_LIBRARY_MOVE.
any & operator=(ValueType &&rhs)
void clear() BOOST_NOEXCEPT
virtual const boost::typeindex::type_info & type() const BOOST_NOEXCEPT=0
type_index::type_info_t type_info
virtual const char * what() const BOOST_NOEXCEPT_OR_NOTHROW
#define BOOST_DEDUCED_TYPENAME
boost::detail::add_reference_impl< T >::type type
boost::detail::remove_rvalue_ref< T >::type type
friend ValueType * unsafe_any_cast(any *) BOOST_NOEXCEPT
any(const ValueType &value)
virtual placeholder * clone() const
friend ValueType * any_cast(any *) BOOST_NOEXCEPT
const boost::typeindex::type_info & type() const BOOST_NOEXCEPT
#define BOOST_SYMBOL_VISIBLE
virtual const boost::typeindex::type_info & type() const BOOST_NOEXCEPT
virtual placeholder * clone() const =0
Includes minimal set of headers required to use the Boost.TypeIndex library.
#define BOOST_NOEXCEPT_OR_NOTHROW
bool empty() const BOOST_NOEXCEPT
sick_visionary_ros
Author(s): SICK AG TechSupport 3D Snapshot
autogenerated on Thu Feb 8 2024 03:36:31