std::array
std::array
Defined in header <array> | ||
---|---|---|
template< class T, std::size_t N > struct array; | (since C++11) |
std::array
is a container that encapsulates fixed size arrays.
This container is an aggregate type with the same semantics as a struct holding a C-style array T[N]
as its only non-static data member. Unlike a C-style array, it doesn't decay to T*
automatically. As an aggregate type, it can be initialized with 登录查看完整内容