From Jason Turner

[time.duration.arithmetic]

Diff to HTML by rtfpessoa

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