A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://en.cppreference.com/w/cpp/language/../error/error_code/../../utility/nontype.html below:

std::nontype, std::nontype_t - cppreference.com

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

(1) (since C++26)

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

(2) (since C++26)

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

2)

The corresponding

std::nontype

instance of

(1)

is a disambiguation argument tag that can be passed to the constructors of

std::function_ref

to indicate that the contained object should be constructed with the value of the constant template parameter

V

.

[edit] Template parameters [edit] See also

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4