Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      iter_move(std::basic_const_iterator<Iter>)

      From cppreference.com
      <cpp‎ |iterator‎ |basic const iterator
       
       
      Iterator library
      Iterator concepts
      Iterator primitives
      Algorithm concepts and utilities
      Indirect callable concepts
      Common algorithm requirements
      (C++20)
      (C++20)
      (C++20)
      Utilities
      (C++20)
      Iterator adaptors
      Range access
      (C++11)(C++14)
      (C++14)(C++14)  
      (C++11)(C++14)
      (C++14)(C++14)  
      (C++17)(C++20)
      (C++17)
      (C++17)
       
       
      friendconstexpr/*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*/ isstd::common_reference_t<conststd::iter_value_t<Iter>&&,std::iter_rvalue_reference_t<Iter>>.

      The function body is equivalent to
      returnstatic_cast</*rvalue-reference*/>(std::ranges::iter_move(i.base()));.

      This function is not visible to ordinaryunqualified orqualified lookup, and can only be found byargument-dependent lookup whenstd::basic_const_iterator<Iter> is an associated class of the arguments.

      Contents

      [edit]Parameter

      i - abasic_const_iterator

      [edit]Return value

      An rvalue reference to const, or a prvalue.

      [edit]Exceptions

      noexcept specification:  
      noexcept(noexcept(static_cast</*rvalue-reference*/>(std::ranges::iter_move(i.base()))))

      [edit]Example

      This section is incomplete
      Reason: no example

      [edit]See also

      (C++20)
      casts the result of dereferencing an object to its associated rvalue reference type
      (customization point object)[edit]
      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/iterator/basic_const_iterator/iter_move&oldid=171069"

      [8]ページ先頭

      ©2009-2025 Movatter.jp