From Jason Turner

[time.duration.nonmember]

Diff to HTML by rtfpessoa

tmp/tmp2e41cors/{from.md → to.md} RENAMED
@@ -7,30 +7,30 @@ type of the function. `CR(A,B)` represents `common_type_t<A, B>`.
7
  template <class Rep1, class Period1, class Rep2, class Period2>
8
  constexpr common_type_t<duration<Rep1, Period1>, duration<Rep2, Period2>>
9
  operator+(const duration<Rep1, Period1>& lhs, const duration<Rep2, Period2>& rhs);
10
  ```
11
 
12
- *Returns:* CD(CD(lhs).count() + CD(rhs).count()).
13
 
14
  ``` cpp
15
  template <class Rep1, class Period1, class Rep2, class Period2>
16
  constexpr common_type_t<duration<Rep1, Period1>, duration<Rep2, Period2>>
17
  operator-(const duration<Rep1, Period1>& lhs, const duration<Rep2, Period2>& rhs);
18
  ```
19
 
20
- *Returns:* CD(CD(lhs).count() - CD(rhs).count()).
21
 
22
  ``` cpp
23
  template <class Rep1, class Period, class Rep2>
24
  constexpr duration<common_type_t<Rep1, Rep2>, Period>
25
  operator*(const duration<Rep1, Period>& d, const Rep2& s);
26
  ```
27
 
28
  *Remarks:* This operator shall not participate in overload resolution
29
  unless `Rep2` is implicitly convertible to `CR(Rep1, Rep2)`.
30
 
31
- *Returns:* CD(CD(d).count() \* s).
32
 
33
  ``` cpp
34
  template <class Rep1, class Rep2, class Period>
35
  constexpr duration<common_type_t<Rep1, Rep2>, Period>
36
  operator*(const Rep1& s, const duration<Rep2, Period>& d);
@@ -47,13 +47,13 @@ template <class Rep1, class Period, class Rep2>
47
  operator/(const duration<Rep1, Period>& d, const Rep2& s);
48
  ```
49
 
50
  *Remarks:* This operator shall not participate in overload resolution
51
  unless `Rep2` is implicitly convertible to `CR(Rep1, Rep2)` and `Rep2`
52
- is not an instantiation of `duration`.
53
 
54
- *Returns:* CD(CD(d).count() / s).
55
 
56
  ``` cpp
57
  template <class Rep1, class Period1, class Rep2, class Period2>
58
  constexpr common_type_t<Rep1, Rep2>
59
  operator/(const duration<Rep1, Period1>& lhs, const duration<Rep2, Period2>& rhs);
@@ -67,17 +67,17 @@ template <class Rep1, class Period, class Rep2>
67
  operator%(const duration<Rep1, Period>& d, const Rep2& s);
68
  ```
69
 
70
  *Remarks:* This operator shall not participate in overload resolution
71
  unless `Rep2` is implicitly convertible to `CR(Rep1, Rep2)` and `Rep2`
72
- is not an instantiation of `duration`.
73
 
74
- *Returns:* CD(CD(d).count() % s).
75
 
76
  ``` cpp
77
  template <class Rep1, class Period1, class Rep2, class Period2>
78
  constexpr common_type_t<duration<Rep1, Period1>, duration<Rep2, Period2>>
79
  operator%(const duration<Rep1, Period1>& lhs, const duration<Rep2, Period2>& rhs);
80
  ```
81
 
82
- *Returns:* CD(CD(lhs).count() % CD(rhs).count()).
83
 
 
7
  template <class Rep1, class Period1, class Rep2, class Period2>
8
  constexpr common_type_t<duration<Rep1, Period1>, duration<Rep2, Period2>>
9
  operator+(const duration<Rep1, Period1>& lhs, const duration<Rep2, Period2>& rhs);
10
  ```
11
 
12
+ *Returns:* `CD(CD(lhs).count() + CD(rhs).count())`.
13
 
14
  ``` cpp
15
  template <class Rep1, class Period1, class Rep2, class Period2>
16
  constexpr common_type_t<duration<Rep1, Period1>, duration<Rep2, Period2>>
17
  operator-(const duration<Rep1, Period1>& lhs, const duration<Rep2, Period2>& rhs);
18
  ```
19
 
20
+ *Returns:* `CD(CD(lhs).count() - CD(rhs).count())`.
21
 
22
  ``` cpp
23
  template <class Rep1, class Period, class Rep2>
24
  constexpr duration<common_type_t<Rep1, Rep2>, Period>
25
  operator*(const duration<Rep1, Period>& d, const Rep2& s);
26
  ```
27
 
28
  *Remarks:* This operator shall not participate in overload resolution
29
  unless `Rep2` is implicitly convertible to `CR(Rep1, Rep2)`.
30
 
31
+ *Returns:* `CD(CD(d).count() * s)`.
32
 
33
  ``` cpp
34
  template <class Rep1, class Rep2, class Period>
35
  constexpr duration<common_type_t<Rep1, Rep2>, Period>
36
  operator*(const Rep1& s, const duration<Rep2, Period>& d);
 
47
  operator/(const duration<Rep1, Period>& d, const Rep2& s);
48
  ```
49
 
50
  *Remarks:* This operator shall not participate in overload resolution
51
  unless `Rep2` is implicitly convertible to `CR(Rep1, Rep2)` and `Rep2`
52
+ is not a specialization of `duration`.
53
 
54
+ *Returns:* `CD(CD(d).count() / s)`.
55
 
56
  ``` cpp
57
  template <class Rep1, class Period1, class Rep2, class Period2>
58
  constexpr common_type_t<Rep1, Rep2>
59
  operator/(const duration<Rep1, Period1>& lhs, const duration<Rep2, Period2>& rhs);
 
67
  operator%(const duration<Rep1, Period>& d, const Rep2& s);
68
  ```
69
 
70
  *Remarks:* This operator shall not participate in overload resolution
71
  unless `Rep2` is implicitly convertible to `CR(Rep1, Rep2)` and `Rep2`
72
+ is not a specialization of `duration`.
73
 
74
+ *Returns:* `CD(CD(d).count() % s)`.
75
 
76
  ``` cpp
77
  template <class Rep1, class Period1, class Rep2, class Period2>
78
  constexpr common_type_t<duration<Rep1, Period1>, duration<Rep2, Period2>>
79
  operator%(const duration<Rep1, Period1>& lhs, const duration<Rep2, Period2>& rhs);
80
  ```
81
 
82
+ *Returns:* `CD(CD(lhs).count() % CD(rhs).count())`.
83