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