Lưu ý
Cần có ủy quyền mới truy nhập được vào trang này. Bạn có thể thử đăng nhập hoặc thay đổi thư mục.
Cần có ủy quyền mới truy nhập được vào trang này. Bạn có thể thử thay đổi thư mục.
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. |
to_array |
Converts a built-in array to a std::array object. |