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

constexpr std::size_t x = xieite::type_id<int>;
static_assert(xieite::type_id<int> == x);
static_assert(xieite::type_id<char> != x);
[View in Compiler Explorer]