tmp/tmpp24h9bhd/{from.md → to.md}
RENAMED
|
@@ -1,24 +1,24 @@
|
|
| 1 |
#### Overview <a id="array.overview">[[array.overview]]</a>
|
| 2 |
|
| 3 |
The header `<array>` defines a class template for storing fixed-size
|
| 4 |
sequences of objects. An `array` is a contiguous container
|
| 5 |
-
[[container.
|
| 6 |
-
|
| 7 |
|
| 8 |
An `array` is an aggregate [[dcl.init.aggr]] that can be
|
| 9 |
list-initialized with up to `N` elements whose types are convertible to
|
| 10 |
`T`.
|
| 11 |
|
| 12 |
-
An `array` meets all of the requirements of a container
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
sequence container [[sequence.reqmts]]. Descriptions
|
| 17 |
-
only for operations on `array` that are not described
|
| 18 |
-
tables and for operations where there is additional
|
| 19 |
-
information.
|
| 20 |
|
| 21 |
`array<T, N>` is a structural type [[temp.param]] if `T` is a structural
|
| 22 |
type. Two values `a1` and `a2` of type `array<T, N>` are
|
| 23 |
template-argument-equivalent [[temp.type]] if and only if each pair of
|
| 24 |
corresponding elements in `a1` and `a2` are
|
|
|
|
| 1 |
#### Overview <a id="array.overview">[[array.overview]]</a>
|
| 2 |
|
| 3 |
The header `<array>` defines a class template for storing fixed-size
|
| 4 |
sequences of objects. An `array` is a contiguous container
|
| 5 |
+
[[container.reqmts]]. An instance of `array<T, N>` stores `N` elements
|
| 6 |
+
of type `T`, so that `size() == N` is an invariant.
|
| 7 |
|
| 8 |
An `array` is an aggregate [[dcl.init.aggr]] that can be
|
| 9 |
list-initialized with up to `N` elements whose types are convertible to
|
| 10 |
`T`.
|
| 11 |
|
| 12 |
+
An `array` meets all of the requirements of a container
|
| 13 |
+
[[container.reqmts]] and of a reversible container
|
| 14 |
+
[[container.rev.reqmts]], except that a default constructed `array`
|
| 15 |
+
object is not empty if `N` > 0. An `array` meets some of the
|
| 16 |
+
requirements of a sequence container [[sequence.reqmts]]. Descriptions
|
| 17 |
+
are provided here only for operations on `array` that are not described
|
| 18 |
+
in one of these tables and for operations where there is additional
|
| 19 |
+
semantic information.
|
| 20 |
|
| 21 |
`array<T, N>` is a structural type [[temp.param]] if `T` is a structural
|
| 22 |
type. Two values `a1` and `a2` of type `array<T, N>` are
|
| 23 |
template-argument-equivalent [[temp.type]] if and only if each pair of
|
| 24 |
corresponding elements in `a1` and `a2` are
|