std::basic_const_iterator<Iter>:: operator[]
From cppreference.com
<
cpp
|
iterator
|
basic const iterator
C++
Iterator library
Iterator concepts | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Iterator primitives | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Algorithm concepts and utilities | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Indirect callable concepts | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Common algorithm requirements | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Utilities | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Iterator adaptors | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
std::basic_const_iterator
Member functions | ||||
basic_const_iterator::operator[]
|
||||
Non-member functions | ||||
(C++23)
(C++23)
(C++23)
(C++23)
|
||||
(C++23)
|
||||
(C++23)
|
||||
Helper classes | ||||
constexpr
std::
iter_const_reference_t
<
Iter
>
operator
[
]
(
difference_type n
)
const
requires std:: random_access_iterator < Iterator > ; |
(since C++23) | |
Returns a reference to the element at specified relative location.
Parameters
n | - | position relative to current location |
Return value
A reference-to-const to the element at relative location, that is, static_cast < std:: iter_const_reference_t < Iter >> ( base ( ) [ n ] ) .
Example
This section is incomplete
Reason: no example |
See also
accesses the pointed-to element
(public member function) |
Retrieved from "
https://en.cppreference.com/mwiki/index.php?title=cpp/iterator/basic_const_iterator/operator_at&oldid=171073
"