Namespaces
Variants
Views
Actions

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

From cppreference.com
< cpp‎ | ranges‎ | concat view‎ | iterator
 
 
Ranges library
Range adaptors
 
 
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.

Contents

[edit] Parameters

pos - position relative to current location

[edit] Return value

*((*this) + pos)

[edit] Example

[edit] See also

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