From 36de660d9f56cf66f8992b93c73b42c789505a40 Mon Sep 17 00:00:00 2001 From: Eisenwave Date: Fri, 14 Nov 2025 19:31:46 +0100 Subject: [PATCH] P3922R1 Missing deduction guide from simd::mask to simd::vec --- source/numerics.tex | 19 +++++++++++++++++++ source/support.tex | 2 +- 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/source/numerics.tex b/source/numerics.tex index 785fc3b47c..8cf83e1645 100644 --- a/source/numerics.tex +++ b/source/numerics.tex @@ -17574,6 +17574,9 @@ template basic_vec(R&& r, Ts...) -> @\seebelow@; + + template + basic_vec(basic_mask) -> @\seebelow@; } \end{codeblock} @@ -17796,6 +17799,22 @@ \end{codeblock} \end{itemdescr} +\begin{itemdecl} +template + basic_vec(basic_mask k) -> @\seebelow@; +\end{itemdecl} + +\begin{itemdescr} +\pnum +\constraints +\tcode{basic_mask} is an enabled specialization of \tcode{basic_mask} and +\tcode{decltype(+k)} is a valid type. + +\pnum +\remarks +The deduced type is equivalent to \tcode{decltype(+k)}. +\end{itemdescr} + \indexlibraryctor{basic_vec} \begin{itemdecl} constexpr basic_vec(const @\exposid{real-type}@& reals, const @\exposid{real-type}@& imags = {}) noexcept; diff --git a/source/support.tex b/source/support.tex index d3bc607c20..60e57ba2fd 100644 --- a/source/support.tex +++ b/source/support.tex @@ -830,7 +830,7 @@ #define @\defnlibxname{cpp_lib_shared_ptr_weak_type}@ 201606L // also in \libheader{memory} #define @\defnlibxname{cpp_lib_shared_timed_mutex}@ 201402L // also in \libheader{shared_mutex} #define @\defnlibxname{cpp_lib_shift}@ 202202L // also in \libheader{algorithm} -#define @\defnlibxname{cpp_lib_simd}@ 202506L // also in \libheader{simd} +#define @\defnlibxname{cpp_lib_simd}@ 202511L // also in \libheader{simd} #define @\defnlibxname{cpp_lib_simd_complex}@ 202502L // also in \libheader{simd} #define @\defnlibxname{cpp_lib_simd_permutations}@ 202506L // also in \libheader{simd} #define @\defnlibxname{cpp_lib_smart_ptr_for_overwrite}@ 202002L // also in \libheader{memory}