Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      std::move_sentinel

      From cppreference.com
      <cpp‎ |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)
       
       
      Defined in header<iterator>
      template<std::semiregular S>
      class move_sentinel;
      (since C++20)

      std::move_sentinel is a sentinel adaptor used for denoting ranges together withstd::move_iterator.

      Contents

      [edit]Template parameters

      S - the type of underlying sentinel

      [edit]Member functions

      constructs a newmove_sentinel
      (public member function)
      assigns the contents of onemove_sentinel to another
      (public member function)
      return a copy of the underlying sentinel
      (public member function)

      [edit]Member objects

      Member name Definition
      last(private) underlying sentinel
      (exposition-only member object*)

      [edit]Non-member functions

      compares the underlying iterator and the underlying sentinel
      (function template)[edit]
      computes the distance between the underlying iterator and the underlying sentinel
      (function template)[edit]

      [edit]Example

      This section is incomplete
      Reason: no example

      [edit]See also

      iterator adaptor which dereferences to an rvalue
      (class template)[edit]
      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/iterator/move_sentinel&oldid=172568"

      [8]ページ先頭

      ©2009-2025 Movatter.jp