Redigera

Dela via


<array>

Defines the container class template array and several supporting templates.

Requirements

Header: <array>

Namespace: std

Note

The <array> library also uses the #include <initializer_list> statement.

Members

Classes

Name Description
array Stores a fixed-length sequence of elements.
tuple_element Wraps the type of an array element.
tuple_size Wraps the size of an array element.

Operators

Name Description
operator== array comparison, equal
operator!= array comparison, not equal
operator< array comparison, less than
operator>= array comparison, greater than or equal
operator> array comparison, greater than
operator<= array comparison, less than or equal

Functions

Name Description
get Get specified array element.
swap Exchanges the contents of one array with the contents of another array.

See also

<tuple>
Header Files Reference