22
Containers library
[containers]
22.3
Sequence containers
[sequences]
22.3.11
Class template
vector
[vector]
22.3.11.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
(
)
)
.
2
#
Complexity:
Constant time
.