From Jason Turner

[optional.nullops]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmpspevncth/{from.md → to.md} +2 -52
tmp/tmpspevncth/{from.md → to.md} RENAMED
@@ -1,64 +1,14 @@
1
  ### Comparison with `nullopt` <a id="optional.nullops">[[optional.nullops]]</a>
2
 
3
  ``` cpp
4
  template<class T> constexpr bool operator==(const optional<T>& x, nullopt_t) noexcept;
5
- template <class T> constexpr bool operator==(nullopt_t, const optional<T>& x) noexcept;
6
  ```
7
 
8
  *Returns:* `!x`.
9
 
10
  ``` cpp
11
- template <class T> constexpr bool operator!=(const optional<T>& x, nullopt_t) noexcept;
12
- template <class T> constexpr bool operator!=(nullopt_t, const optional<T>& x) noexcept;
13
  ```
14
 
15
- *Returns:* `bool(x)`.
16
-
17
- ``` cpp
18
- template <class T> constexpr bool operator<(const optional<T>& x, nullopt_t) noexcept;
19
- ```
20
-
21
- *Returns:* `false`.
22
-
23
- ``` cpp
24
- template <class T> constexpr bool operator<(nullopt_t, const optional<T>& x) noexcept;
25
- ```
26
-
27
- *Returns:* `bool(x)`.
28
-
29
- ``` cpp
30
- template <class T> constexpr bool operator<=(const optional<T>& x, nullopt_t) noexcept;
31
- ```
32
-
33
- *Returns:* `!x`.
34
-
35
- ``` cpp
36
- template <class T> constexpr bool operator<=(nullopt_t, const optional<T>& x) noexcept;
37
- ```
38
-
39
- *Returns:* `true`.
40
-
41
- ``` cpp
42
- template <class T> constexpr bool operator>(const optional<T>& x, nullopt_t) noexcept;
43
- ```
44
-
45
- *Returns:* `bool(x)`.
46
-
47
- ``` cpp
48
- template <class T> constexpr bool operator>(nullopt_t, const optional<T>& x) noexcept;
49
- ```
50
-
51
- *Returns:* `false`.
52
-
53
- ``` cpp
54
- template <class T> constexpr bool operator>=(const optional<T>& x, nullopt_t) noexcept;
55
- ```
56
-
57
- *Returns:* `true`.
58
-
59
- ``` cpp
60
- template <class T> constexpr bool operator>=(nullopt_t, const optional<T>& x) noexcept;
61
- ```
62
-
63
- *Returns:* `!x`.
64
 
 
1
  ### Comparison with `nullopt` <a id="optional.nullops">[[optional.nullops]]</a>
2
 
3
  ``` cpp
4
  template<class T> constexpr bool operator==(const optional<T>& x, nullopt_t) noexcept;
 
5
  ```
6
 
7
  *Returns:* `!x`.
8
 
9
  ``` cpp
10
+ template<class T> constexpr strong_ordering operator<=>(const optional<T>& x, nullopt_t) noexcept;
 
11
  ```
12
 
13
+ *Returns:* `bool(x) <=> false`.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
14