23
Containers library
[containers]
23.3
Sequence containers
[sequences]
23.3.3
Class template
array
[array]
23.3.3.2
Constructors, copy, and assignment
[array.cons]
1
#
An
array
relies on the implicitly-declared special member functions (
[class.
default.
ctor]
,
[class.
dtor]
,
[class.
copy.
ctor]
) to conform to the container requirements table in
[container.
requirements]
.
In addition to the requirements specified in the container requirements table, the implicitly-declared move constructor and move assignment operator for
array
require that
T
be
Cpp17MoveConstructible
or
Cpp17MoveAssignable
, respectively
.
🔗
template
<
class
T,
class
.
.
.
U
>
array
(
T, U
.
.
.
)
-
>
array
<
T,
1
+
sizeof
.
.
.
(
U
)
>
;
2
#
Mandates
:
(
is_
same_
v
<
T, U
>
&
&
.
.
.
)
is
true
.