std::array
Template:cpp/container/array/sidebar
Defined in header <array>
|
||
template< class T, |
(since C++11) | |
array
is a container that encapsulates constant size arrays.
This struct is designed to provide the benefits of a standard container (an array
knows its own size, supports assignment, random access iterators, etc.)
while still providing the aggregate type semantics of C-style arrays.
There is a special case for a zero-length array (N == 0
). In that case, array.begin() == array.end()
, which is some unique value. The effect of calling front()
or back()
on a zero-sized array is undefined.
array
is a class aggregate which allows it to use aggregate-initialization.
Contents |
Member types
Template:tdcl list begin Template:tdcl list hitem Template:tdcl list template Template:tdcl list template Template:tdcl list template Template:tdcl list template Template:tdcl list template Template:tdcl list template Template:tdcl list template Template:tdcl list template Template:tdcl list template Template:tdcl list template Template:tdcl list template Template:tdcl list end