std::nontype, std::nontype_t

Header: <utility>

  1. The class template std::nontype_t can be used in the constructor’s parameter list to match the intended tag.

# Declarations

template< auto V >
struct nontype_t { explicit nontype_t() = default; };

(since C++26)

template< auto V >
constexpr std::nontype_t<V> nontype {};

(since C++26)

# See also