Namespaces
Variants
Views
Actions

std::array

From cppreference.com
< cpp‎ | container
Revision as of 07:04, 5 October 2011 by Cubbi (Talk | contribs)

Template:cpp/container/array/sidebar

Defined in header <array>
template<

    class T,
    size_t N

> struct array;
Template:mark c++11 feature

array is a container that encapsulates constant size arrays.

This struct is designed to provide the benefits of a STL container (an array knows its own size, supports assignment, etc.) while still providing the performance of C-style arrays.

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

Member functions

Template:cpp/container/dcl list atTemplate:cpp/container/dcl list operator atTemplate:cpp/container/dcl list frontTemplate:cpp/container/dcl list backTemplate:cpp/container/dcl list dataTemplate:cpp/container/dcl list beginTemplate:cpp/container/dcl list endTemplate:cpp/container/dcl list rbeginTemplate:cpp/container/dcl list rendTemplate:cpp/container/dcl list emptyTemplate:cpp/container/dcl list sizeTemplate:cpp/container/dcl list max sizeTemplate:cpp/container/dcl list fillTemplate:cpp/container/dcl list swap
Element access
Iterators
Capacity
Operations

Non-member functions

Template:cpp/container/dcl list std swap
accesses an element of an array
(function template)

Helper classes

obtains the size of an array
(class template specialization)
obtains the type of the elements of array
(class template specialization)