File tree 1 file changed +10
-0
lines changed
1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change 15334
15334
\rSec2[meta.type.synop]{Header \tcode{<type_traits>} synopsis}
15335
15335
15336
15336
\indexhdr{type_traits}%
15337
+ \indexlibrary{\idxcode{type_identity_t}}%
15337
15338
\begin{codeblock}
15338
15339
namespace std {
15339
15340
// \ref{meta.help}, helper class
15503
15504
using add_pointer_t = typename add_pointer<T>::type;
15504
15505
15505
15506
// \ref{meta.trans.other}, other transformations
15507
+ template<class T> struct type_identity;
15506
15508
template<size_t Len, size_t Align = @\textit{default-alignment}@> // see \ref{meta.trans.other}
15507
15509
struct aligned_storage;
15508
15510
template<size_t Len, class... Types> struct aligned_union;
15514
15516
template<class T> struct underlying_type;
15515
15517
template<class Fn, class... ArgTypes> struct invoke_result;
15516
15518
15519
+ template<class T>
15520
+ using type_identity_t = typename type_identity<T>::type;
15517
15521
template<size_t Len, size_t Align = @\textit{default-alignment}@> // see \ref{meta.trans.other}
15518
15522
using aligned_storage_t = typename aligned_storage<Len, Align>::type;
15519
15523
template<size_t Len, class... Types>
16847
16851
\lhdr{Template} & \rhdr{Comments} \\ \capsep
16848
16852
\endhead
16849
16853
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
+
16850
16860
\indexlibrary{\idxcode{aligned_storage}}%
16851
16861
\tcode{template<size_t Len,\br
16852
16862
size_t Align\br
You can’t perform that action at this time.
0 commit comments