Skip to content

Commit 36de660

Browse files
eisenwavetkoeppe
authored andcommitted
P3922R1 Missing deduction guide from simd::mask to simd::vec
1 parent 05d7344 commit 36de660

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

source/numerics.tex

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17574,6 +17574,9 @@
1757417574

1757517575
template<class R, class... Ts>
1757617576
basic_vec(R&& r, Ts...) -> @\seebelow@;
17577+
17578+
template<size_t Bytes, class Abi>
17579+
basic_vec(basic_mask<Bytes, Abi>) -> @\seebelow@;
1757717580
}
1757817581
\end{codeblock}
1757917582

@@ -17796,6 +17799,22 @@
1779617799
\end{codeblock}
1779717800
\end{itemdescr}
1779817801

17802+
\begin{itemdecl}
17803+
template<size_t Bytes, class Abi>
17804+
basic_vec(basic_mask<Bytes, Abi> k) -> @\seebelow@;
17805+
\end{itemdecl}
17806+
17807+
\begin{itemdescr}
17808+
\pnum
17809+
\constraints
17810+
\tcode{basic_mask<Bytes, Abi>} is an enabled specialization of \tcode{basic_mask} and
17811+
\tcode{decltype(+k)} is a valid type.
17812+
17813+
\pnum
17814+
\remarks
17815+
The deduced type is equivalent to \tcode{decltype(+k)}.
17816+
\end{itemdescr}
17817+
1779917818
\indexlibraryctor{basic_vec}
1780017819
\begin{itemdecl}
1780117820
constexpr basic_vec(const @\exposid{real-type}@& reals, const @\exposid{real-type}@& imags = {}) noexcept;

source/support.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -830,7 +830,7 @@
830830
#define @\defnlibxname{cpp_lib_shared_ptr_weak_type}@ 201606L // also in \libheader{memory}
831831
#define @\defnlibxname{cpp_lib_shared_timed_mutex}@ 201402L // also in \libheader{shared_mutex}
832832
#define @\defnlibxname{cpp_lib_shift}@ 202202L // also in \libheader{algorithm}
833-
#define @\defnlibxname{cpp_lib_simd}@ 202506L // also in \libheader{simd}
833+
#define @\defnlibxname{cpp_lib_simd}@ 202511L // also in \libheader{simd}
834834
#define @\defnlibxname{cpp_lib_simd_complex}@ 202502L // also in \libheader{simd}
835835
#define @\defnlibxname{cpp_lib_simd_permutations}@ 202506L // also in \libheader{simd}
836836
#define @\defnlibxname{cpp_lib_smart_ptr_for_overwrite}@ 202002L // also in \libheader{memory}

0 commit comments

Comments
 (0)