20 General utilities library [utilities]

20.15 Metaprogramming and type traits [meta]

20.15.8 Transformations between types [meta.trans]

20.15.8.5 Array modifications [meta.trans.arr]

Table 58: Array modifications [tab:meta.trans.arr]
Template
Comments
template<class T>
struct remove_­extent;
If T names a type โ€œarray of Uโ€, the member typedef type shall be U, otherwise T.
[Note 1:
For multidimensional arrays, only the first array dimension is removed.
For a type โ€œarray of const Uโ€, the resulting type is const U.
โ€” end note]
template<class T>
struct remove_­all_­extents;
If T is โ€œmulti-dimensional array of Uโ€, the resulting member typedef type is U, otherwise T.