std::experimental::ranges:: StrictWeakOrder
From cppreference.net
<
cpp
|
experimental
|
ranges
C++
Experimental
| 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 |
Concepts library
| Core language concepts | |||||||||||||
| Object concepts | |||||||||||||
| Comparison concepts | |||||||||||||
| Callable concepts | |||||||||||||
|
|||||||||||||
| URNG concept | |||||||||||||
|
template
<
class
R,
class
T,
class
U
>
concept bool StrictWeakOrder = Relation < R, T, U > ; |
(1) | (ranges TS) |
概念
StrictWeakOrder<R, T, U>
规定
Relation
R
对其参数施加严格弱序关系。当关系
r
满足以下条件时,它构成严格弱序:
-
它是非自反的:对所有
x,r(x, x)为假; -
它是传递的:对所有
a、b和c,若r(a, b)与r(b, c)同时为真,则r(a, c)为真; -
令
e(a, b)为!r(a, b) && !r(b, a),则e是传递的:e(a, b) && e(b, c)蕴含e(a, c)。
在此条件下,可以证明
e
是一个等价关系,且
r
在由
e
确定的等价类上诱导出一个严格全序关系。
注释
Relation
与
StrictWeakOrder
之间的区别纯粹是语义层面的。