We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 42ec426 commit 2a9aa98Copy full SHA for 2a9aa98
source/iterators.tex
@@ -3068,7 +3068,13 @@
3068
\begin{itemdescr}
3069
\pnum
3070
\effects
3071
-Equivalent to: \tcode{return last - static_cast<const decay_t<I>\&>(first);}
+Equivalent to:
3072
+\begin{codeblock}
3073
+if constexpr (!is_array_v<remove_reference_t<I>>)
3074
+ return last - first;
3075
+else
3076
+ return last - static_cast<decay_t<I>>(first);
3077
+\end{codeblock}
3078
\end{itemdescr}
3079
3080
\indexlibraryglobal{distance}%
0 commit comments