std::rank
From cppreference.com
Template:cpp/types/sidebar Template:ddcl list begin <tr class="t-dsc-header">
<td>Defined in header
</td>
<type_traits>
<td></td> <td></td> </tr> <tr class="t-dcl ">
<td >template< class T >
struct rank;
</td>
struct rank;
<td class="t-dcl-nopad"> </td> <td > Template:mark c++11 feature </td> </tr> Template:ddcl list end
If T
is an array type, provides the member constant value
equal to the number of dimensions of the array. For any other type, value
is 0.
Contents |
Member objects
Template:tdcl list begin Template:tdcl list hitem Template:tdcl list item Template:tdcl list end
Equivalent definition
Example
See also
(C++11) |
checks if a type is an array type (class template) |
(C++11) |
obtains the size of an array type along a specified dimension (class template) |