Skip to content

Search topics & cppreference

Search all study topics, concept maps, and 6,587 C++ and C reference pages.

std::ranges::concat_view<Views...>::iterator<Const>::operator[]

Returns a reference to an element at specified relative location.

NotebookLM
constexpr decltype(auto) operator[]( difference_type pos ) const
    requires /*concat-is-random-access*/<Const, Views...>;
(since C++26)

Returns a reference to an element at specified relative location.

Parameters

pos - position relative to current location

Return value

*((*this) + pos)

Example

This section is incomplete
Reason: no example

See also

(C++26)
accesses the element
(public member function)

Content from this page on cppreference.com, licensed under CC-BY-SA 3.0 and GFDL. Modified: restyled, site navigation removed, code windows added. Offline snapshot of 9 February 2025.