• Class / Function / Type

      std::
    • Header file

      <>
    • Other / All

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

    履歴 編集

    concept
    <memory>

    std::no-throw-sentinel

    namespace std {
      template <class S, class I>
      concept no-throw-sentinel = sentinel_for<S, I>;
    }
    

    概要

    no-throw-sentinelは、以下の操作で例外を投げない、型Sがイテレータ型Iの番兵(sentinel)型であることを表す説明用コンセプトである。

    • コピー構築
    • ムーブ構築
    • コピー代入
    • ムーブ代入
    • 比較

    備考

    • このコンセプトはsentinel_forのいくつかの操作で例外を投げることを許可する
    • このコンセプトは、std::vector<bool>のイテレータのような、プロキシオブジェクトを指すイテレータを除外する

    参照