std::basic_const_iterator<Iter>::operator[]

Returns a reference to the element at specified relative location.

# Declarations

constexpr std::iter_const_reference_t<Iter> operator[]( difference_type n ) const
requires std::random_access_iterator<Iterator>;

(since C++23)

# Parameters

# Return value

A reference-to-const to the element at relative location, that is, static_cast<std::iter_const_reference_t>(base()[n]).

# Example

This section is incompleteReason: no example

# See also