Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      std::experimental::ranges::Sentinel

      From cppreference.com
      <cpp‎ |experimental‎ |ranges
       
       
       
       
      Iterators library
      Iterator concepts
      Indirect callable concepts
                                                        
                                                        
                                                        
      Common algorithm requirements
                                                        
      Concept utilities
      Iterator utilities and operations
      Iterator traits
      Iterator adaptors
      Stream iterators
       
      template<class S,class I>

      conceptbool Sentinel=
          Semiregular<S>&& Iterator<I>&&

          WeaklyEqualityComparableWith<S, I>;
      (ranges TS)

      TheSentinel concept specifies the relationship between anIterator type and aSemiregular type whose values denote a range.

      Lets andi be values of typeS andI, respectively, such that[is) denotes a range.Sentinel<S, I> is satisfied only if:

      • i== s is well-defined.
      • Ifbool(i!= s) theni is dereferenceable and[++is) denotes a range.

      The domain of== can change over time. Given an iteratori and sentinels such that[is) denotes a range andi!= s,[is) is not required to continue to denote a range after incrementing any iterator equal toi (and soi== s is no longer required to be well-defined after such an increment).

      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/experimental/ranges/iterator/Sentinel&oldid=155550"

      [8]ページ先頭

      ©2009-2026 Movatter.jp