Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Function template any_cast

boost::anys::any_cast

Synopsis

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


template<typename ValueType,  OptimizeForSize, 
          OptimizeForAlignment> 
   (basic_any<  operand);

Description

Returns:

ValueType stored in operand, leaving the operand empty.

Throws:

boost::bad_any_cast if operand does not contain specified ValueType.

PrevUpHomeNext