...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
boost::type_erasure::typeid_of
// 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);
The first form returns the type currently stored in an any
.
The second form returns the type corresponding to a placeholder in binding
.
Requires: |
|