@@ -12808,21 +12808,40 @@
12808
12808
\begin{itemdescr}
12809
12809
\pnum
12810
12810
Let \tcode{A} be
12811
+ \begin{itemize}
12812
+ \item
12811
12813
\tcode{remove_cvref_t<decltype(a.accessor().nested_accessor())>}
12812
- if \tcode{Accessor} is a specialization of \tcode{conjugated_accessor}, and
12813
- otherwise \tcode{conjugated_accessor<Accessor>}.
12814
+ if \tcode{Accessor} is a specialization of \tcode{conjugated_accessor}; otherwise,
12815
+ \item
12816
+ \tcode{Accessor} if \tcode{remove_cvref_t<ElementType>} is an arithmetic type; otherwise,
12817
+ \item
12818
+ \tcode{Accessor} if the expression \tcode{conj(E)} is not valid for any subexpression \tcode{E}
12819
+ whose type \tcode{T} is expression-equivalent to \tcode{remove_cvref_t<ElementType>}
12820
+ with overload resolution performed in a context that includes the declaration
12821
+ \tcode{template<class T> conj(const T\&) = delete;}; and otherwise,
12822
+ \item
12823
+ \tcode{conjugated_accessor<Accessor>}.
12824
+ \end{itemize}
12814
12825
12815
12826
\pnum
12816
12827
\returns
12817
12828
\begin{itemize}
12818
12829
\item
12819
- If \tcode{Accessor} is a specialization of \tcode{conjugated_accessor},
12830
+ The value
12820
12831
\begin{codeblock}
12821
12832
mdspan<typename A::element_type, Extents, Layout, A>(a.data_handle(), a.mapping(),
12822
12833
a.accessor().nested_accessor())
12823
12834
\end{codeblock}
12835
+ if \tcode{Accessor} is a specialization of \tcode{conjugated_accessor}; otherwise,
12824
12836
\item
12825
- otherwise,
12837
+ \tcode{a} if \tcode{remove_cvref_t<ElementType>} is an arithmetic type; otherwise,
12838
+ \item
12839
+ \tcode{a} if the expression \tcode{conj(E)} is not valid for any subexpression \tcode{E}
12840
+ whose type \tcode{T} is expression-equivalent to \tcode{remove_cvref_t<ElementType>}
12841
+ with overload resolution performed in a context that includes the declaration
12842
+ \tcode{template<class T> conj(const T\&) = delete;}; and otherwise,
12843
+ \item
12844
+ the value
12826
12845
\begin{codeblock}
12827
12846
mdspan<typename A::element_type, Extents, Layout, A>(a.data_handle(), a.mapping(),
12828
12847
conjugated_accessor(a.accessor()))
0 commit comments