table of contents
- Tumbleweed 2026.11.13-1.1
- Leap-16.0
| std::nontype,std::nontype_t(3) | C++ Standard Libary | std::nontype,std::nontype_t(3) |
NAME¶
std::nontype,std::nontype_t - std::nontype,std::nontype_t
Synopsis¶
Defined in header <utility> template< auto V > (1) (since C++26) struct nontype_t { explicit nontype_t() = default; }; template< auto V > (2) (since C++26) constexpr std::nontype_t<V> nontype {};
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 non-type template parameter V.
Template parameters¶
V - non-type template parameter of a structural type.
See also¶
function_ref non-owning wrapper of any callable object (C++26) (class template)
| 2026.11.10 | http://cppreference.com |