Spec-Zone.ru › C++

std::ranges::subrange<I,S,K>::begin

constexpr I begin() const requires std::copyable<I>;
(1) (since C++20)
constexpr I begin() requires (!std::copyable<I>);
(2) (since C++20)

Obtains the iterator to the beginning of the subrange.

Return value

1) begin_.
2) std::move(begin_ ).

Example

See also

end
obtains the sentinel
(public member function)
begincbegin
(C++11)(C++14)
returns an iterator to the beginning of a container or array
(function template)
ranges::begin
(C++20)
returns an iterator to the beginning of a range
(customization point object)

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

Spec-Zone.ru

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