Skip to content

Commit 082e11e

Browse files
Dawn Perchikzygoloid
authored andcommitted
P0357R3 reference_wrapper for incomplete types
[refwrap] Clause 24 as mentioned in the paper is now 19.
1 parent 958f4ef commit 082e11e

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
@@ -13338,6 +13338,10 @@
1333813338
\pnum
1333913339
\tcode{reference_wrapper<T>} is a trivially copyable type\iref{basic.types}.
1334013340

13341+
\pnum
13342+
The template parameter \tcode{T} of \tcode{reference_wrapper}
13343+
may be an incomplete type.
13344+
1334113345
\rSec3[refwrap.const]{Constructors and destructor}
1334213346

1334313347
\indexlibrary{\idxcode{reference_wrapper}!constructor}%
@@ -13417,12 +13421,21 @@
1341713421
\end{itemdecl}
1341813422

1341913423
\begin{itemdescr}
13424+
\pnum
13425+
\mandates
13426+
\tcode{T} is a complete type.
13427+
1342013428
\pnum\returns \tcode{\placeholdernc{INVOKE}(get(), std::forward<ArgTypes>(args)...)}.\iref{func.require}
1342113429
\end{itemdescr}
1342213430

1342313431

1342413432
\rSec3[refwrap.helpers]{Helper functions}
1342513433

13434+
\pnum
13435+
The template parameter \tcode{T} of
13436+
the following \tcode{ref} and \tcode{cref} function templates
13437+
may be an incomplete type.
13438+
1342613439
\indexlibrarymember{ref}{reference_wrapper}%
1342713440
\begin{itemdecl}
1342813441
template<class T> reference_wrapper<T> ref(T& t) noexcept;

0 commit comments

Comments
 (0)