std::move_iterator<Iter>::base

From cppreference.com
 
 
Iterator library
Iterator concepts
Iterator primitives
Algorithm concepts and utilities
Indirect callable concepts
Common algorithm requirements
Utilities
Iterator adaptors
Stream iterators
Iterator customization points
Iterator operations
(C++11)
(C++11)
Range access
(C++11)(C++14)
(C++11)(C++14)
(C++17)(C++20)
(C++14)(C++14)
(C++14)(C++14)
(C++17)
(C++17)
 
 
(1)
iterator_type base() const;
(since C++11)
(until C++17)
constexpr iterator_type base() const;
(since C++17)
(until C++20)
constexpr iterator_type base() const&;
(since C++20)
constexpr iterator_type base() &&;
(2) (since C++20)

Returns the underlying base iterator.

1) Copy constructs the return value from the underlying iterator. This overload only participates in overload resolution if iterator_type satisfies copy_constructible. The behavior is undefined if iterator_type does not model copy_constructible. (since C++20)
2) Move constructs the return value from the underlying iterator.

Parameters

(none)

Return value

Copy of the underlying iterator.

Exceptions

May throw implementation-defined exceptions.

Example

See also

(deprecated in C++20)
accesses the pointed-to element
(public member function)