diff --git a/source/support.tex b/source/support.tex index 6537402e86..ed5a22738f 100644 --- a/source/support.tex +++ b/source/support.tex @@ -709,7 +709,7 @@ #define @\defnlibxname{cpp_lib_freestanding_utility}@ 202306L // freestanding, also in \libheader{utility} #define @\defnlibxname{cpp_lib_freestanding_variant}@ 202311L // freestanding, also in \libheader{variant} #define @\defnlibxname{cpp_lib_fstream_native_handle}@ 202306L // also in \libheader{fstream} -#define @\defnlibxname{cpp_lib_function_ref}@ 202306L // freestanding, also in \libheader{functional} +#define @\defnlibxname{cpp_lib_function_ref}@ 202511L // freestanding, also in \libheader{functional} #define @\defnlibxname{cpp_lib_gcd_lcm}@ 201606L // freestanding, also in \libheader{numeric} #define @\defnlibxname{cpp_lib_generator}@ 202207L // also in \libheader{generator} #define @\defnlibxname{cpp_lib_generic_associative_lookup}@ 201304L // also in \libheader{map}, \libheader{set} diff --git a/source/utilities.tex b/source/utilities.tex index 73ab92a210..9da848e8e2 100644 --- a/source/utilities.tex +++ b/source/utilities.tex @@ -213,14 +213,14 @@ }; template constexpr in_place_index_t in_place_index{}; - // \tcode{nontype} argument tag% -\indexlibraryglobal{nontype_t}% -\indexlibraryglobal{nontype} + // \tcode{constant_arg} argument tag% +\indexlibraryglobal{constant_arg_t}% +\indexlibraryglobal{constant_arg} template - struct nontype_t { - explicit nontype_t() = default; + struct constant_arg_t { + explicit constant_arg_t() = default; }; - template constexpr nontype_t nontype{}; + template constexpr constant_arg_t constant_arg{}; // \ref{variant.monostate}, class \tcode{monostate}% \indexlibraryglobal{monostate} @@ -15077,9 +15077,9 @@ // \ref{func.wrap.ref.ctor}, constructors and assignment operators template function_ref(F*) noexcept; template constexpr function_ref(F&&) noexcept; - template constexpr function_ref(nontype_t) noexcept; - template constexpr function_ref(nontype_t, U&&) noexcept; - template constexpr function_ref(nontype_t, @\cv{}@ T*) noexcept; + template constexpr function_ref(constant_arg_t) noexcept; + template constexpr function_ref(constant_arg_t, U&&) noexcept; + template constexpr function_ref(constant_arg_t, @\cv{}@ T*) noexcept; constexpr function_ref(const function_ref&) noexcept = default; constexpr function_ref& operator=(const function_ref&) noexcept = default; @@ -15100,9 +15100,9 @@ template function_ref(F*) -> function_ref; template - function_ref(nontype_t) -> function_ref<@\seebelow@>; + function_ref(constant_arg_t) -> function_ref<@\seebelow@>; template - function_ref(nontype_t, T&&) -> function_ref<@\seebelow@>; + function_ref(constant_arg_t, T&&) -> function_ref<@\seebelow@>; } \end{codeblock} @@ -15210,7 +15210,7 @@ \indexlibraryctor{function_ref}% \begin{itemdecl} -template constexpr function_ref(nontype_t) noexcept; +template constexpr function_ref(constant_arg_t) noexcept; \end{itemdecl} \begin{itemdescr} @@ -15241,7 +15241,7 @@ \indexlibraryctor{function_ref}% \begin{itemdecl} template - constexpr function_ref(nontype_t, U&& obj) noexcept; + constexpr function_ref(constant_arg_t, U&& obj) noexcept; \end{itemdecl} \begin{itemdescr} @@ -15275,7 +15275,7 @@ \indexlibraryctor{function_ref}% \begin{itemdecl} template - constexpr function_ref(nontype_t, @\cv{}@ T* obj) noexcept; + constexpr function_ref(constant_arg_t, @\cv{}@ T* obj) noexcept; \end{itemdecl} \begin{itemdescr} @@ -15318,7 +15318,7 @@ \begin{itemize} \item \tcode{T} is not the same type as \tcode{function_ref}, \item \tcode{is_pointer_v} is \tcode{false}, and -\item \tcode{T} is not a specialization of \tcode{nontype_t}. +\item \tcode{T} is not a specialization of \tcode{constant_arg_t}. \end{itemize} \end{itemdescr} @@ -15351,7 +15351,7 @@ \begin{itemdecl} template - function_ref(nontype_t) -> function_ref<@\seebelow@>; + function_ref(constant_arg_t) -> function_ref<@\seebelow@>; \end{itemdecl} \begin{itemdescr} @@ -15369,7 +15369,7 @@ \begin{itemdecl} template - function_ref(nontype_t, T&&) -> function_ref<@\seebelow@>; + function_ref(constant_arg_t, T&&) -> function_ref<@\seebelow@>; \end{itemdecl} \begin{itemdescr}