From Jason Turner

[time.point.arithmetic]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmpxc79__4g/{from.md → to.md} +31 -3
tmp/tmpxc79__4g/{from.md → to.md} RENAMED
@@ -1,18 +1,46 @@
1
- #### `time_point` arithmetic <a id="time.point.arithmetic">[[time.point.arithmetic]]</a>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
 
3
  ``` cpp
4
  constexpr time_point& operator+=(const duration& d);
5
  ```
6
 
7
- *Effects:* As if by: `d_ += d;`
8
 
9
  *Returns:* `*this`.
10
 
11
  ``` cpp
12
  constexpr time_point& operator-=(const duration& d);
13
  ```
14
 
15
- *Effects:* As if by: `d_ -= d;`
16
 
17
  *Returns:* `*this`.
18
 
 
1
+ ### Arithmetic <a id="time.point.arithmetic">[[time.point.arithmetic]]</a>
2
+
3
+ ``` cpp
4
+ constexpr time_point& operator++();
5
+ ```
6
+
7
+ *Effects:* Equivalent to: `++d_`.
8
+
9
+ *Returns:* `*this`.
10
+
11
+ ``` cpp
12
+ constexpr time_point operator++(int);
13
+ ```
14
+
15
+ *Effects:* Equivalent to: `return time_point{d_++};`
16
+
17
+ ``` cpp
18
+ constexpr time_point& operator--();
19
+ ```
20
+
21
+ *Effects:* Equivalent to: `–d_`.
22
+
23
+ *Returns:* `*this`.
24
+
25
+ ``` cpp
26
+ constexpr time_point operator--(int);
27
+ ```
28
+
29
+ *Effects:* Equivalent to: `return time_point{d_--};`
30
 
31
  ``` cpp
32
  constexpr time_point& operator+=(const duration& d);
33
  ```
34
 
35
+ *Effects:* Equivalent to: `d_ += d`.
36
 
37
  *Returns:* `*this`.
38
 
39
  ``` cpp
40
  constexpr time_point& operator-=(const duration& d);
41
  ```
42
 
43
+ *Effects:* Equivalent to: `d_ -= d`.
44
 
45
  *Returns:* `*this`.
46