xieite::type<>

Defined in header <xieite/meta/type.hpp>

A type wrapper. This exists because std::type_identity {} isn't guaranteed to be default-constructible.


Definition

template<typename T>
using type = /* struct { typename type = T; } */;


Example

static_assert(std::same_as<xieite::type<int>::type, int>);

int main() {}
[View in Compiler Explorer]