Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Function template type_id_runtime

boost::typeindex::type_id_runtime

Synopsis

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


template<typename T>  ( runtime_val);

Description

Function that works exactly like C++ typeid(rtti_val) call, but returns boost::type_index.

Returns runtime information about specified type.

Requirements: RTTI available or Base and Derived classes must be marked with BOOST_TYPE_INDEX_REGISTER_CLASS.

Example:

Parameters:

runtime_val

Variable which runtime type must be returned.

Returns:

boost::typeindex::type_index with information about the specified variable.

Throws:

Nothing.

PrevUpHomeNext