A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://en.cppreference.com/w/cpp/algorithm/../iterator/basic_const_iterator/iter_move.html below:

iter_move(std::basic_const_iterator<Iter>) - cppreference.com

friend constexpr /*rvalue-reference*/
    iter_move( const basic_const_iterator& i ) noexcept(/* see below */);

(since C++23)

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.

[edit] Parameter i - a basic_const_iterator [edit] Return value

An rvalue reference to const, or a prvalue.

[edit] Exceptions [edit] Example [edit] See also casts the result of dereferencing an object to its associated rvalue reference type
(customization point object)[edit]

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4