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 an older version of Boost and was released in 2023. The current version is 1.89.0.
boost::anys::any_cast
// In header: <boost/any/basic_any.hpp> template<typename ValueType, std::size_t OptimizeForSize, std::size_t OptimizeForAlignment> ValueType any_cast(basic_any< OptimizeForSize, OptimizeForAlignment > && operand);
Returns: |
|
Throws: |
boost::bad_any_cast if operand does not contain specified ValueType. |