• Class / Function / Type

      std::
    • Header file

      <>
    • Other / All

    最終更新日時(UTC):
    が更新

    履歴 編集

    function
    <iterator>

    std::move_sentinel::operator=

    template<class S2>
      requires assignable_from<S&, const S2&>
    constexpr move_sentinel& operator=(const move_sentinel<S2>& s);
    

    概要

    move_sentinelオブジェクトをコピー代入する。

    効果

    Sの番兵オブジェクトをlastというメンバ変数に保持しているとすると、以下と等価

    last = s.last;
    return *this;
    

    バージョン

    言語

    • C++20

    処理系

    参照