Init
This commit is contained in:
24
cppdraft/variant/monostate/relops.md
Normal file
24
cppdraft/variant/monostate/relops.md
Normal file
@@ -0,0 +1,24 @@
|
||||
[variant.monostate.relops]
|
||||
|
||||
# 22 General utilities library [[utilities]](./#utilities)
|
||||
|
||||
## 22.6 Variants [[variant]](variant#monostate.relops)
|
||||
|
||||
### 22.6.9 monostate relational operators [variant.monostate.relops]
|
||||
|
||||
[ð](#lib:operator==,monostate)
|
||||
|
||||
`constexpr bool operator==(monostate, monostate) noexcept { return true; }
|
||||
constexpr strong_ordering operator<=>(monostate, monostate) noexcept
|
||||
{ return strong_ordering::equal; }
|
||||
`
|
||||
|
||||
[1](#1)
|
||||
|
||||
[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/utilities.tex#L6932)
|
||||
|
||||
[*Note [1](#note-1)*:
|
||||
|
||||
monostate objects have only a single state; they thus always compare equal[.](#1.sentence-1)
|
||||
|
||||
â *end note*]
|
||||
Reference in New Issue
Block a user