Namespaces
Variants
Actions

std::ranges::elements_view<V,N>::begin

From cppreference.com
< cpp‎ | ranges‎ | elements view
 
 
Ranges library
 
std::ranges::elements_view
elements_view::begin
 
constexpr auto begin() requires (!/*simple-view*/<V>);
(1) (since C++20)
constexpr auto begin() const requires ranges::range <const V>;
(2) (since C++20)

Returns an iterator to the first element of the elements_view.

Let base_ be the underlying view.

1) Equivalent to return /*iterator*/<false>(ranges::begin (base_));.
2) Equivalent to return /*iterator*/<true>(ranges::begin (base_));.

[edit] Parameters

(none)

[edit] Return value

Iterator to the first element.

[edit] Example

This section is incomplete
Reason: no example

[edit] See also

returns an iterator or a sentinel to the end
(public member function) [edit]
returns an iterator to the beginning of a range
(customization point object)[edit]
Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/ranges/elements_view/begin&oldid=173588"

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