std::ranges::elements_view<V,F>::iterator<Const>::base
From cppreference.com
< cpp | ranges | elements view | iterator
C++
Feature test macros (C++20)
Concepts library (C++20)
Metaprogramming library (C++11)
Ranges library (C++20)
Filesystem library (C++17)
Concurrency support library (C++11)
Execution control library (C++26)
Ranges library
(C++23)(C++23)
(C++23)(C++23)
(C++23)(C++23)
(C++26)(C++26)
(C++23)(C++23)
(C++23)(C++23)
(C++23)(C++23)
(C++23)(C++23)
(C++23)(C++23)
(C++23)
(C++23)(C++23)
(C++23)
(C++23)(C++23)
(C++23)(C++23)
(C++23)(C++23)
(C++23)(C++23)
(C++23)(C++23)
(C++23)
std::ranges::elements_view
(C++26)
elements_view::iterator::base
constexpr const ranges::iterator_t <Base>& base() const & noexcept;
(1)
(since C++20)
constexpr ranges::iterator_t <Base> base() &&;
(2)
(since C++20)
Returns the underlying iterator.
1) Returns a reference to the underlying iterator.
2) Move constructs the result from the underlying iterator.
[edit] Parameters
(none)
[edit] Return value
1) A reference to the underlying iterator.
1) An iterator move constructed from the underlying iterator.
[edit] Example
This section is incomplete
Reason: no example
Reason: no example
[edit] Defect reports
The following behavior-changing defect reports were applied retroactively to previously published C++ standards.
DR | Applied to | Behavior as published | Correct behavior |
---|---|---|---|
LWG 3533 | C++20 | the const& overload of base returns a copy of the underlying iterator
|
returns a reference |
LWG 3593 | C++20 | the const& overload of base might not be noexcept
|
made noexcept |