Skip to content

Commit 753c960

Browse files
author
Dawn Perchik
committed
P0357R3 reference_wrapper for incomplete types
[refwrap] Clause 24 as mentioned in the paper is now 19.
1 parent 12935b8 commit 753c960

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

source/utilities.tex

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13249,6 +13249,10 @@
1324913249
\pnum
1325013250
\tcode{reference_wrapper<T>} is a trivially copyable type\iref{basic.types}.
1325113251

13252+
\pnum
13253+
The template parameter \tcode{T} of \tcode{reference_wrapper}
13254+
may be an incomplete type.
13255+
1325213256
\rSec3[refwrap.const]{Constructors and destructor}
1325313257

1325413258
\indexlibrary{\idxcode{reference_wrapper}!constructor}%
@@ -13329,12 +13333,21 @@
1332913333
\end{itemdecl}
1333013334

1333113335
\begin{itemdescr}
13336+
\pnum
13337+
\mandates
13338+
\tcode{T} is a complete type.
13339+
1333213340
\pnum\returns \tcode{\placeholdernc{INVOKE}(get(), std::forward<ArgTypes>(args)...)}.\iref{func.require}
1333313341
\end{itemdescr}
1333413342

1333513343

1333613344
\rSec3[refwrap.helpers]{Helper functions}
1333713345

13346+
\pnum
13347+
The template parameter \tcode{T} of
13348+
the following \tcode{ref} and \tcode{cref} function templates
13349+
may be an incomplete type.
13350+
1333813351
\indexlibrarymember{ref}{reference_wrapper}%
1333913352
\begin{itemdecl}
1334013353
template<class T> reference_wrapper<T> ref(T& t) noexcept;

0 commit comments

Comments
 (0)