std::experimental::any_cast

Performs type-safe access to the contained object.

# Declarations

template<class ValueType>
ValueType any_cast(const any& operand);

(library fundamentals TS)

template<class ValueType>
ValueType any_cast(any& operand);

(library fundamentals TS)

template<class ValueType>
ValueType any_cast(any&& operand);

(library fundamentals TS)

template<class ValueType>
const ValueType* any_cast(const any* operand) noexcept;

(library fundamentals TS)

template<class ValueType>
ValueType* any_cast(any* operand) noexcept;

(library fundamentals TS)

# Parameters