Namespaces
Variants
Actions

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

From cppreference.com
< cpp‎ | ranges‎ | concat view‎ | iterator
 
 
Ranges library
 
std::ranges::concat_view
concat_view::iterator::operator*
 
constexpr decltype(auto) operator*() const;
(since C++26)

Returns a reference to the current element in the concat_view.

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

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

[edit] Return value

As described above.

[edit] Notes

operator-> is not provided.

[edit] Example

This section is incomplete
Reason: no example

[edit] See also

(C++26)
accesses an element by index
(public member function)
Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/ranges/concat_view/iterator/operator*&oldid=176968"

AltStyle によって変換されたページ (->オリジナル) /