C++ Typeindex Library constructor



Description

It constructs a type_index object that refers to tpinf.

Declaration

Following is the declaration for std::type_index::type_index.

type_index (const type_info& tpinf) noexcept;

C++11

type_index (const type_info& tpinf) noexcept;

Parameters

tpinf − It is a type_info object.

Return Value

none

Exceptions

No-throw guarantee − never throws exceptions.

cpp_typeindex.htm
Advertisements