xieite::wrap_type<>

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

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


Definition

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


Example

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

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