问题(Question):
在coursera看到有人用std::array去宣告array
http://www.cplusplus.com/reference/array/array/
可是array不是用一般方式宣告就好了吗?
例如说 int foo [5] = { 16, 2, 77, 40, 12071 };
多include 一个array标头再宣告成
std::array<int,5> foo = { 16, 2, 77, 40, 12071 };
不是比较麻烦吗?
我想问的是用std:array宣告array有啥特别的优点呢?
谢谢。