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 an old version of Boost. Click here to view this page for the latest version.
PrevUpHomeNext

Function typeid_of

boost::type_erasure::typeid_of

Synopsis

// In header: <boost/type_erasure/typeid_of.hpp>


template<typename Concept, typename T> 
  const std::type_info & typeid_of(const any< Concept, T > & arg);
template<typename T, typename Concept> 
  const std::type_info & typeid_of(const binding< Concept > & binding);

Description

The first form returns the type currently stored in an any.

The second form returns the type corresponding to a placeholder in binding.

Requires:

Concept includes typeid_<T>.

T is a non-reference, CV-unqualified placeholder.


PrevUpHomeNext