Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for a snapshot of the develop branch, built from commit f0c8273b54.
PrevUpHomeNext

Function template any_cast

boost::any_cast

Synopsis

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


template<typename ValueType> ValueType any_cast(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