Returns the number of elements in the array container.
The size of an array object is always equal to the second template parameter used to instantiate the array template class (N).
Unlike the language operatorsizeof, which returns the size in bytes, this member function returns the size of the array in terms of number of elements.
参数
无
返回值
The number of elements contained in the array object. This is a compile-time constant expression (constexpr).
成员类型size_typeis an alias of the unsigned integral type size_t.