Skip to content

Commit d6938b1

Browse files
committed
P0887R1 The identity metafunction
1 parent 591545d commit d6938b1

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
@@ -15491,6 +15491,7 @@
1549115491
using add_pointer_t = typename add_pointer<T>::type;
1549215492

1549315493
// \ref{meta.trans.other}, other transformations
15494+
template<class T> struct type_identity;
1549415495
template<size_t Len, size_t Align = @\textit{default-alignment}@> // see \ref{meta.trans.other}
1549515496
struct aligned_storage;
1549615497
template<size_t Len, class... Types> struct aligned_union;
@@ -15502,6 +15503,8 @@
1550215503
template<class T> struct underlying_type;
1550315504
template<class Fn, class... ArgTypes> struct invoke_result;
1550415505

15506+
template<class T>
15507+
using type_identity_t = typename type_identity<T>::type;
1550515508
template<size_t Len, size_t Align = @\textit{default-alignment}@> // see \ref{meta.trans.other}
1550615509
using aligned_storage_t = typename aligned_storage<Len, Align>::type;
1550715510
template<size_t Len, class... Types>
@@ -16835,6 +16838,12 @@
1683516838
\lhdr{Template} & \rhdr{Comments} \\ \capsep
1683616839
\endhead
1683716840

16841+
\indexlibrary{\idxcode{type_identity}}%
16842+
\tcode{template<class T>\br
16843+
struct type_identity;}
16844+
&
16845+
The member typedef \tcode{type} names the type \tcode{T}. \\ \rowsep
16846+
1683816847
\indexlibrary{\idxcode{aligned_storage}}%
1683916848
\tcode{template<size_t Len,\br
1684016849
size_t Align\br

0 commit comments

Comments
 (0)