| friend constexpr decltype(auto) iter_move( const /*iterator*/& i ) noexcept(/* see below */); |
(since C++20) | |
If *i is an lvalue reference, returns ; otherwise returns std::move(*i)*i.
This function is not visible to ordinary unqualified or qualified lookup, and can only be found by argument-dependent lookup when transform_view::iterator<Const> is an associated class of the arguments.
Parameters
| i | - | iterator |
Return value
std::move(*i) if *i is an lvalue reference, otherwise *i
Exceptions
noexcept specification:
noexcept(noexcept(std::invoke(*i.parent_->fun_, *i.current_)))
*i.parent_->fun_ denotes the transformation function, i.current_ denotes the underlying iterator.Content from this page on cppreference.com, licensed under CC-BY-SA 3.0 and GFDL. Modified: restyled, site navigation removed, code windows added. Offline snapshot of 9 February 2025.