std::experimental::ranges:: Sentinel
| Technical Specification | ||||
| Filesystem library (filesystem TS) | ||||
| Library fundamentals (library fundamentals TS) | ||||
| Library fundamentals 2 (library fundamentals TS v2) | ||||
| Library fundamentals 3 (library fundamentals TS v3) | ||||
| Extensions for parallelism (parallelism TS) | ||||
| Extensions for parallelism 2 (parallelism TS v2) | ||||
| Extensions for concurrency (concurrency TS) | ||||
| Extensions for concurrency 2 (concurrency TS v2) | ||||
| Concepts (concepts TS) | ||||
| Ranges (ranges TS) | ||||
| Reflection (reflection TS) | ||||
| Mathematical special functions (special functions TR) | ||||
| Experimental Non-TS | ||||
| Pattern Matching | ||||
| Linear Algebra | ||||
| std::execution | ||||
| Contracts | ||||
| 2D Graphics |
| 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
>
concept
bool
Sentinel
=
|
(ranges TS) | |
Sentinel
コンセプトは、
Iterator
型と、値が範囲を示す
Semiregular
型との関係を指定します。
s
と
i
がそれぞれ型
S
と
I
の値であり、
[
i
,
s
)
が範囲を表す場合、
Sentinel<S, I>
は以下の条件を満たす場合にのみ成立します:
- i == s は well-defined です。
-
bool
(
i
!
=
s
)
の場合、
iは dereferenceable であり、[++ i,s)は範囲を表します。
==
の定義域は時間とともに変化することがあります。イテレータ
i
とセンチネル
s
が与えられ、
[
i
,
s
)
が範囲を表し、
i
!
=
s
であるとき、
i
と等しい任意のイテレータをインクリメントした後も
[
i
,
s
)
が範囲を表し続けることは要求されません(したがって、そのようなインクリメント後は
i
==
s
がwell-definedであることも要求されません)。