Spec-Zone.ru › C++

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

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

See also

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

© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
https://en.cppreference.com/cpp/ranges/concat_view/iterator/operator_at

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API