table of contents
- Tumbleweed 2026.11.13-1.1
- Leap-16.0
| iter_move(std::basic_const_iterator)(3) | C++ Standard Libary | iter_move(std::basic_const_iterator)(3) |
NAME¶
iter_move(std::basic_const_iterator) - iter_move(std::basic_const_iterator)
Synopsis¶
friend constexpr /*rvalue-reference*/ (since C++23) iter_move( const basic_const_iterator& i ) noexcept(/* see below */);
Casts the result of dereferencing the underlying iterator to its associated const rvalue reference type.
The return type /*rvalue-reference*/ is std::common_reference_t<const std::iter_value_t<Iter>&&, std::iter_rvalue_reference_t<Iter>>.
The function body is equivalent to return static_cast</*rvalue-reference*/>(std::ranges::iter_move(i.base()));.
This function is not visible to ordinary unqualified or qualified lookup, and can only be found by argument-dependent lookup when std::basic_const_iterator<Iter> is an associated class of the arguments.
Parameter
i - a basic_const_iterator
Return value¶
An rvalue reference to const, or a prvalue.
Exceptions¶
noexcept specification: noexcept(noexcept(static_cast</*rvalue-reference*/>(std::ranges::iter_move(i.base()))))
Example¶
This section is incomplete
Reason: no example
See also¶
iter_move casts the result of dereferencing an object to its
associated rvalue reference (C++20) type
(customization point object)
| 2026.11.10 | http://cppreference.com |