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.
(none).
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 |
© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
https://en.cppreference.com/w/cpp/ranges/elements_view/iterator/base