Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      std::move_sentinel<S>::operator=

      From cppreference.com
      <cpp‎ |iterator‎ |move sentinel
       
       
      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)
       
       
      template<class S2>

          requiresstd::assignable_from<S&,const S2&>

             constexpr move_sentinel& operator=(conststd::move_sentinel<S2>& other);
      (since C++20)

      The underlying sentinel is assigned the value of the underlying sentinel ofother, i.e.other.base().

      Contents

      [edit]Parameters

      other - sentinel adaptor to assign

      [edit]Return value

      *this

      [edit]Example

      This section is incomplete
      Reason: no example

      [edit]See also

      assigns anothermove_iterator
      (public member function ofstd::move_iterator<Iter>)[edit]
      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/iterator/move_sentinel/operator%3D&oldid=159944"

      [8]ページ先頭

      ©2009-2025 Movatter.jp