Init
This commit is contained in:
29
cppdraft/optional/nullops.md
Normal file
29
cppdraft/optional/nullops.md
Normal file
@@ -0,0 +1,29 @@
|
||||
[optional.nullops]
|
||||
|
||||
# 22 General utilities library [[utilities]](./#utilities)
|
||||
|
||||
## 22.5 Optional objects [[optional]](optional#nullops)
|
||||
|
||||
### 22.5.8 Comparison with nullopt [optional.nullops]
|
||||
|
||||
[ð](#lib:operator==,optional)
|
||||
|
||||
`template<class T> constexpr bool operator==(const optional<T>& x, nullopt_t) noexcept;
|
||||
`
|
||||
|
||||
[1](#1)
|
||||
|
||||
[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/utilities.tex#L5208)
|
||||
|
||||
*Returns*: !x[.](#1.sentence-1)
|
||||
|
||||
[ð](#lib:operator%3c=%3e,optional)
|
||||
|
||||
`template<class T> constexpr strong_ordering operator<=>(const optional<T>& x, nullopt_t) noexcept;
|
||||
`
|
||||
|
||||
[2](#2)
|
||||
|
||||
[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/utilities.tex#L5219)
|
||||
|
||||
*Returns*: x.has_value() <=> false[.](#2.sentence-1)
|
||||
Reference in New Issue
Block a user