xte::type<>

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

A type alias for creating a simple-type-specifier.
Does not obstruct template parameter deduction, unlike std::type_identity_t<>.


Definition

template<typename T>
using type = T;



Example

template<typename T, xte::uz n>
int foo(const xte::type<T[n]>&);

static_assert(requires { foo({ 1, 2, 3 }); });
[View in Compiler Explorer]