Skip to content

Commit fdac83e

Browse files
committed
fixup: add missing as-const-pointer
1 parent 79baa00 commit fdac83e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

source/ranges.tex

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1130,6 +1130,11 @@
11301130
\rSec2[range.prim.cdata]{\tcode{ranges::cdata}}
11311131
\indexlibraryglobal{cdata}%
11321132

1133+
\begin{codeblock}
1134+
template<class T>
1135+
constexpr auto @\exposid{as-const-pointer}@(const T* p) { return p; } // \expos
1136+
\end{codeblock}
1137+
11331138
\pnum
11341139
The name \tcode{ranges::cdata} denotes a customization point
11351140
object\iref{customization.point.object}.

0 commit comments

Comments
 (0)