The size of std::array is known at compile time, but the size member function isn\'t static. Is there any reason for that? It\'s slightly inconvenient not to be
size
Since C++11 you can use std::tuple_size on std::array to obtain the size as a compile time constant. See
std::tuple_size
std::array
http://en.cppreference.com/w/cpp/container/array/tuple_size