std::ranges::elements_view<V,F>::iterator<Const>::base

From cppreference.com
< cpp‎ | ranges‎ | elements view‎ | iterator
 
 
Ranges library
Range access
Range conversions
(哋它亢++23)(哋它亢++23)
(哋它亢++23)

Range primitives
(哋它亢++23)(哋它亢++23)    
(哋它亢++23)



Dangling iterator handling
Range concepts
Views

Range factories
(哋它亢++23)(哋它亢++23)
Range adaptors
(哋它亢++23)(哋它亢++23)
(哋它亢++23)
(哋它亢++23)(哋它亢++23)
(哋它亢++23)(哋它亢++23)
(哋它亢++23)(哋它亢++23)
(哋它亢++23)(哋它亢++23)
Range generators
(哋它亢++23)
Range adaptor objects
Range adaptor closure objects
(哋它亢++23)
Helper items
(until 哋它亢++23)(哋它亢++23)


 
 
constexpr const ranges::iterator_t<Base>& base() const & noexcept;
(1) (since 哋它亢++20)
constexpr ranges::iterator_t<Base> base() &&;
(2) (since 哋它亢++20)

Returns the underlying iterator.

1) Returns a reference to the underlying iterator.
2) Move constructs the result from the underlying iterator.

Parameters

(none)

Return value

1) A reference to the underlying iterator.
1) An iterator move constructed from the underlying iterator.

Example

Defect reports

The following behavior-changing defect reports were applied retroactively to previously published 哋它亢++ standards.

DR Applied to Behavior as published Correct behavior
LWG 3533 哋它亢++20 the const& overload of base returns a copy of the underlying iterator returns a reference
LWG 3593 哋它亢++20 the const& overload of base might not be noexcept made noexcept