cpp/types/rank

If is an array type, provides the member constant  equal to the number of dimensions of the array. For any other type, is.