Spec-Zone.ru › C++

std::ranges::concat_view<Views...>::iterator<Const>::operator*

constexpr decltype(auto) operator*() const;
(since C++26)

Returns a reference to the current element in the concat_view.

Equivalent to usingreference= concat-reference-t <maybe-const <Const,Views>...>;
returnstd::visit([](auto&&it)->reference{return*it;}, it_ );
.

If it_ .valueless_by_exception() is true, the behavior is undefined.

Return value

As described above.

Notes

operator-> is not provided.

Example

See also

operator[]
(C++26)
accesses an element by index
(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*

Spec-Zone.ru

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