std::type_index::type_index

From Cppreference

Jump to: navigation, search
type_index( const std::type_info& info );
(C++11 feature)

Constructs the type index from std::type_info object.

[edit] Parameters

info - type information object

[edit] Example