Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Function template any_cast

boost::any_cast

Synopsis

// In header: <boost/any/basic_any.hpp>


template<typename T> 
  BOOST_ANY_IMPL_CONSTEXPR T * any_cast(unique_any * operand);

Description

Returns:

Pointer to a T stored in operand, nullptr if operand does not contain specified T.


PrevUpHomeNext