xieite ::type_id <>
Defined in header <xieite/meta/type_id.hpp>
Stores unique identifiers for all types. Does not work between multiple translation units.
Declaration
template <typename >constexpr std ::size_t type_id =/* ??? */ ;
Example
[View in Compiler Explorer]constexpr std ::size_t x =xieite ::type_id <int >;static_assert (xieite ::type_id <int > ==x );static_assert (xieite ::type_id <char > !=x );