Jump to content

C++ Language/Templates/Traits/ArrayTraits

From Wikibooks, open books for an open world

At compile-time, std::rank<int[][8][8]>::value resolves to 3, and std::extent<int[3][4], 1>::value resolves to 4.

Additional information about array traits (includes interactive examples)