23 Containers library [containers]

23.3 Sequence containers [sequences]

23.3.6 Class template vector [vector]

23.3.6.4 vector data [vector.data]

T* data() noexcept; const T* data() const noexcept;

Returns: A pointer such that [data(),data() + size()) is a valid range. For a non-empty vector, data() == &front().

Complexity: Constant time.