Skip to content

Commit 3edbfed

Browse files
authored
Merge 2018-06 LWG Motion 20
Fixes #2137
2 parents 28baab4 + c832f4c commit 3edbfed

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

source/utilities.tex

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15503,6 +15503,7 @@
1550315503
using add_pointer_t = typename add_pointer<T>::type;
1550415504

1550515505
// \ref{meta.trans.other}, other transformations
15506+
template<class T> struct type_identity;
1550615507
template<size_t Len, size_t Align = @\textit{default-alignment}@> // see \ref{meta.trans.other}
1550715508
struct aligned_storage;
1550815509
template<size_t Len, class... Types> struct aligned_union;
@@ -15514,6 +15515,8 @@
1551415515
template<class T> struct underlying_type;
1551515516
template<class Fn, class... ArgTypes> struct invoke_result;
1551615517

15518+
template<class T>
15519+
using type_identity_t = typename type_identity<T>::type;
1551715520
template<size_t Len, size_t Align = @\textit{default-alignment}@> // see \ref{meta.trans.other}
1551815521
using aligned_storage_t = typename aligned_storage<Len, Align>::type;
1551915522
template<size_t Len, class... Types>
@@ -16847,6 +16850,12 @@
1684716850
\lhdr{Template} & \rhdr{Comments} \\ \capsep
1684816851
\endhead
1684916852

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

0 commit comments

Comments
 (0)