24
Containers library
[containers]
24.3
Sequence containers
[sequences]
24.3.12
Class template
vector
[vector]
24.3.12.4
Data
[vector.data]
🔗
constexpr
T
*
data
(
)
noexcept
;
constexpr
const
T
*
data
(
)
const
noexcept
;
1
#
Returns
: A pointer such that [
data
(
)
, data
(
)
+
size
(
)
) is a valid range
.
For a non-empty vector,
data
(
)
=
=
addressof
(
front
(
)
)
is
true
.
2
#
Complexity
: Constant time
.