std::type_index::type_index

From cppreference.com
< cpp‎ | types‎ | type index
 
 
 
 
 
type_index( const std::type_info& info ) noexcept;
(since C++11)

Constructs the type index from std::type_info object.

Parameters

info - type information object

Example