Skip to content

Commit 88dc8aa

Browse files
committed
Merge 2018-06 LWG Motion 20
Fixes #2137
2 parents 28baab4 + 35cb680 commit 88dc8aa

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

source/utilities.tex

+10
Original file line numberDiff line numberDiff line change
@@ -15334,6 +15334,7 @@
1533415334
\rSec2[meta.type.synop]{Header \tcode{<type_traits>} synopsis}
1533515335

1533615336
\indexhdr{type_traits}%
15337+
\indexlibrary{\idxcode{type_identity_t}}%
1533715338
\begin{codeblock}
1533815339
namespace std {
1533915340
// \ref{meta.help}, helper class
@@ -15503,6 +15504,7 @@
1550315504
using add_pointer_t = typename add_pointer<T>::type;
1550415505

1550515506
// \ref{meta.trans.other}, other transformations
15507+
template<class T> struct type_identity;
1550615508
template<size_t Len, size_t Align = @\textit{default-alignment}@> // see \ref{meta.trans.other}
1550715509
struct aligned_storage;
1550815510
template<size_t Len, class... Types> struct aligned_union;
@@ -15514,6 +15516,8 @@
1551415516
template<class T> struct underlying_type;
1551515517
template<class Fn, class... ArgTypes> struct invoke_result;
1551615518

15519+
template<class T>
15520+
using type_identity_t = typename type_identity<T>::type;
1551715521
template<size_t Len, size_t Align = @\textit{default-alignment}@> // see \ref{meta.trans.other}
1551815522
using aligned_storage_t = typename aligned_storage<Len, Align>::type;
1551915523
template<size_t Len, class... Types>
@@ -16847,6 +16851,12 @@
1684716851
\lhdr{Template} & \rhdr{Comments} \\ \capsep
1684816852
\endhead
1684916853

16854+
\indexlibrary{\idxcode{type_identity}}%
16855+
\tcode{template<class T>\br
16856+
struct type_identity;}
16857+
&
16858+
The member typedef \tcode{type} names the type \tcode{T}. \\ \rowsep
16859+
1685016860
\indexlibrary{\idxcode{aligned_storage}}%
1685116861
\tcode{template<size_t Len,\br
1685216862
size_t Align\br

0 commit comments

Comments
 (0)