From Jason Turner

[time.duration.arithmetic]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmpu4wik2b9/{from.md → to.md} +11 -11
tmp/tmpu4wik2b9/{from.md → to.md} RENAMED
@@ -1,6 +1,6 @@
1
- #### `duration` arithmetic <a id="time.duration.arithmetic">[[time.duration.arithmetic]]</a>
2
 
3
  ``` cpp
4
  constexpr common_type_t<duration> operator+() const;
5
  ```
6
 
@@ -14,77 +14,77 @@ constexpr common_type_t<duration> operator-() const;
14
 
15
  ``` cpp
16
  constexpr duration& operator++();
17
  ```
18
 
19
- *Effects:* As if by `++rep_`.
20
 
21
  *Returns:* `*this`.
22
 
23
  ``` cpp
24
  constexpr duration operator++(int);
25
  ```
26
 
27
- *Returns:* `duration(rep_++)`.
28
 
29
  ``` cpp
30
  constexpr duration& operator--();
31
  ```
32
 
33
- *Effects:* As if by `–rep_`.
34
 
35
  *Returns:* `*this`.
36
 
37
  ``` cpp
38
  constexpr duration operator--(int);
39
  ```
40
 
41
- *Returns:* `duration(rep_--)`.
42
 
43
  ``` cpp
44
  constexpr duration& operator+=(const duration& d);
45
  ```
46
 
47
- *Effects:* As if by: `rep_ += d.count();`
48
 
49
  *Returns:* `*this`.
50
 
51
  ``` cpp
52
  constexpr duration& operator-=(const duration& d);
53
  ```
54
 
55
- *Effects:* As if by: `rep_ -= d.count();`
56
 
57
  *Returns:* `*this`.
58
 
59
  ``` cpp
60
  constexpr duration& operator*=(const rep& rhs);
61
  ```
62
 
63
- *Effects:* As if by: `rep_ *= rhs;`
64
 
65
  *Returns:* `*this`.
66
 
67
  ``` cpp
68
  constexpr duration& operator/=(const rep& rhs);
69
  ```
70
 
71
- *Effects:* As if by: `rep_ /= rhs;`
72
 
73
  *Returns:* `*this`.
74
 
75
  ``` cpp
76
  constexpr duration& operator%=(const rep& rhs);
77
  ```
78
 
79
- *Effects:* As if by: `rep_ %= rhs;`
80
 
81
  *Returns:* `*this`.
82
 
83
  ``` cpp
84
  constexpr duration& operator%=(const duration& rhs);
85
  ```
86
 
87
- *Effects:* As if by: `rep_ %= rhs.count();`
88
 
89
  *Returns:* `*this`.
90
 
 
1
+ ### Arithmetic <a id="time.duration.arithmetic">[[time.duration.arithmetic]]</a>
2
 
3
  ``` cpp
4
  constexpr common_type_t<duration> operator+() const;
5
  ```
6
 
 
14
 
15
  ``` cpp
16
  constexpr duration& operator++();
17
  ```
18
 
19
+ *Effects:* Equivalent to: `++rep_`.
20
 
21
  *Returns:* `*this`.
22
 
23
  ``` cpp
24
  constexpr duration operator++(int);
25
  ```
26
 
27
+ *Effects:* Equivalent to: `return duration(rep_++);`
28
 
29
  ``` cpp
30
  constexpr duration& operator--();
31
  ```
32
 
33
+ *Effects:* Equivalent to: `–rep_`.
34
 
35
  *Returns:* `*this`.
36
 
37
  ``` cpp
38
  constexpr duration operator--(int);
39
  ```
40
 
41
+ *Effects:* Equivalent to: `return duration(rep_--);`
42
 
43
  ``` cpp
44
  constexpr duration& operator+=(const duration& d);
45
  ```
46
 
47
+ *Effects:* Equivalent to: `rep_ += d.count()`.
48
 
49
  *Returns:* `*this`.
50
 
51
  ``` cpp
52
  constexpr duration& operator-=(const duration& d);
53
  ```
54
 
55
+ *Effects:* Equivalent to: `rep_ -= d.count()`.
56
 
57
  *Returns:* `*this`.
58
 
59
  ``` cpp
60
  constexpr duration& operator*=(const rep& rhs);
61
  ```
62
 
63
+ *Effects:* Equivalent to: `rep_ *= rhs`.
64
 
65
  *Returns:* `*this`.
66
 
67
  ``` cpp
68
  constexpr duration& operator/=(const rep& rhs);
69
  ```
70
 
71
+ *Effects:* Equivalent to: `rep_ /= rhs`.
72
 
73
  *Returns:* `*this`.
74
 
75
  ``` cpp
76
  constexpr duration& operator%=(const rep& rhs);
77
  ```
78
 
79
+ *Effects:* Equivalent to: `rep_ %= rhs`.
80
 
81
  *Returns:* `*this`.
82
 
83
  ``` cpp
84
  constexpr duration& operator%=(const duration& rhs);
85
  ```
86
 
87
+ *Effects:* Equivalent to: `rep_ %= rhs.count()`.
88
 
89
  *Returns:* `*this`.
90