array::end

Return a const iterator past the last element.

Synopsis

array::iterator
end() noexcept; (1)

array::const_iterator
end() const noexcept; (2)

Description

The returned iterator only acts as a sentinel. Dereferencing it results in undefined behavior.

Complexity

Constant.

Exception Safety

No-throw guarantee.