public member function


initialization (1)
type_index (const type_info& tpinf) noexcept;
copy (2)
type_index (const type_index&  x) noexcept;   // implicitly declared
move (3)
type_index (const type_index&& x) noexcept;   // implicitly declared
Construct type_index
Constructs a type_index object that refers to tpinf.

The implicitly declared copy and move constructors, properly copy or transfer the value of x: The newly constructed object represents the same type as x did before the call. The same applies to the implicitly declared assignment operators.


type_info object.

Data races

No data races are initiated by this constructor.

Exception safety

No-throw guarantee: never throws exceptions.

See also