1// array rank example
2#include <iostream>
3#include <type_traits>
4
5int main() {
6 std::cout << "rank:" << std::endl;
7 std::cout << "int: " << std::rank<int>::value << std::endl;
8 std::cout << "int[]: " << std::rank<int[]>::value << std::endl;
9 std::cout << "int[][10]: " << std::rank<int[][10]>::value << std::endl;
10 std::cout << "int[10][10]: " << std::rank<int[10][10]>::value << std::endl;
11 return 0;
12}