- lib:
boost/libs/any
- repo:
boostorg/any
- commit:
4ca14647
, 2017-02-23
<boost/any.hpp>
class any;
any() noexcept
any(const ValueType& value)
any(const any& other)
any(any&& other) noexcept
any(ValueType&& value)
~any() noexcept
swap(any& rhs) noexcept -> any&
operator=(const any& rhs) -> any&
operator=(any&& rhs) noexcept -> any&
operator=(ValueType&& rhs) -> any&
empty() const noexcept -> bool
clear() noexcept
type() const noexcept -> const boost::typeindex::type_info &
class bad_any_cast : std::bad_cast;
swap(any&, any&) noexcept
any_cast<ValueType>(any*) noexcept -> ValueType*
any_cast<ValueType>(const any*) noexcept -> const ValueType*
any_cast<ValueType>(any&) -> ValueType
any_cast<ValueType>(const any&) -> ValueType
any_cast<ValueType>(any&&) -> ValueType
<boost/config.hpp>
.
<boost/type_index.hpp>
, for RTTI.
<boost/type_traits/*.hpp>
, several type traits.
<boost/throw_exception.hpp>
<boost/static_assert.hpp>
<boost/utility/enable_if.hpp>
<boost/core/addressof.hpp>
<boost/mpl/if.hpp>
, would be<boost/type_traits/conditional.hpp>
better.
- Proposals:
- N3804 - Any library proposal.
- N4335 - C++ Extensions for Library Fundamentals v1.