[array.members] (original) (raw)
23 Containers library [containers]
23.3 Sequence containers [sequences]
23.3.3 Class template array [array]
23.3.3.3 Member functions [array.members]
constexpr size_type size() const noexcept;
constexpr T* data() noexcept;constexpr const T* data() const noexcept;
Returns: A pointer such that [data(), data() + size()) is a valid range.
For a non-empty array, data() == addressof(front()) is true.
constexpr void fill(const T& u);
Effects: As if by fill_n(begin(), N, u).
constexpr void swap(array& y) noexcept(is_nothrow_swappable_v<T>);
Effects: Equivalent to swap_ranges(begin(), end(), y.begin()).
[Note 1:
Unlike the swap function for other containers, array::swaptakes linear time, can exit via an exception, and does not cause iterators to become associated with the other container.
— _end note_]