File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change 15322
15322
\rSec2[meta.type.synop]{Header \tcode{<type_traits>} synopsis}
15323
15323
15324
15324
\indexhdr{type_traits}%
15325
+ \indexlibrary{\idxcode{type_identity_t}}%
15325
15326
\begin{codeblock}
15326
15327
namespace std {
15327
15328
// \ref{meta.help}, helper class
15491
15492
using add_pointer_t = typename add_pointer<T>::type;
15492
15493
15493
15494
// \ref{meta.trans.other}, other transformations
15495
+ template<class T> struct type_identity;
15494
15496
template<size_t Len, size_t Align = @\textit{default-alignment}@> // see \ref{meta.trans.other}
15495
15497
struct aligned_storage;
15496
15498
template<size_t Len, class... Types> struct aligned_union;
15502
15504
template<class T> struct underlying_type;
15503
15505
template<class Fn, class... ArgTypes> struct invoke_result;
15504
15506
15507
+ template<class T>
15508
+ using type_identity_t = typename type_identity<T>::type;
15505
15509
template<size_t Len, size_t Align = @\textit{default-alignment}@> // see \ref{meta.trans.other}
15506
15510
using aligned_storage_t = typename aligned_storage<Len, Align>::type;
15507
15511
template<size_t Len, class... Types>
16835
16839
\lhdr{Template} & \rhdr{Comments} \\ \capsep
16836
16840
\endhead
16837
16841
16842
+ \indexlibrary{\idxcode{type_identity}}%
16843
+ \tcode{template<class T>\br
16844
+ struct type_identity;}
16845
+ &
16846
+ The member typedef \tcode{type} names the type \tcode{T}. \\ \rowsep
16847
+
16838
16848
\indexlibrary{\idxcode{aligned_storage}}%
16839
16849
\tcode{template<size_t Len,\br
16840
16850
size_t Align\br
You can’t perform that action at this time.
0 commit comments