From Jason Turner

[time.cal.ymdlast.nonmembers]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmp9u728xsq/{from.md → to.md} +91 -0
tmp/tmp9u728xsq/{from.md → to.md} RENAMED
@@ -0,0 +1,91 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #### Non-member functions <a id="time.cal.ymdlast.nonmembers">[[time.cal.ymdlast.nonmembers]]</a>
2
+
3
+ ``` cpp
4
+ constexpr bool operator==(const year_month_day_last& x, const year_month_day_last& y) noexcept;
5
+ ```
6
+
7
+ *Returns:*
8
+ `x.year() == y.year() && x.month_day_last() == y.month_day_last()`.
9
+
10
+ ``` cpp
11
+ constexpr strong_ordering operator<=>(const year_month_day_last& x,
12
+ const year_month_day_last& y) noexcept;
13
+ ```
14
+
15
+ *Effects:* Equivalent to:
16
+
17
+ ``` cpp
18
+ if (auto c = x.year() <=> y.year(); c != 0) return c;
19
+ return x.month_day_last() <=> y.month_day_last();
20
+ ```
21
+
22
+ ``` cpp
23
+ constexpr year_month_day_last
24
+ operator+(const year_month_day_last& ymdl, const months& dm) noexcept;
25
+ ```
26
+
27
+ *Constraints:* If the argument supplied by the caller for the `months`
28
+ parameter is convertible to `years`, its implicit conversion sequence to
29
+ `years` is worse than its implicit conversion sequence to `months`
30
+ [[over.ics.rank]].
31
+
32
+ *Returns:* `(ymdl.year() / ymdl.month() + dm) / last`.
33
+
34
+ ``` cpp
35
+ constexpr year_month_day_last
36
+ operator+(const months& dm, const year_month_day_last& ymdl) noexcept;
37
+ ```
38
+
39
+ *Constraints:* If the argument supplied by the caller for the `months`
40
+ parameter is convertible to `years`, its implicit conversion sequence to
41
+ `years` is worse than its implicit conversion sequence to `months`
42
+ [[over.ics.rank]].
43
+
44
+ *Returns:* `ymdl + dm`.
45
+
46
+ ``` cpp
47
+ constexpr year_month_day_last
48
+ operator-(const year_month_day_last& ymdl, const months& dm) noexcept;
49
+ ```
50
+
51
+ *Constraints:* If the argument supplied by the caller for the `months`
52
+ parameter is convertible to `years`, its implicit conversion sequence to
53
+ `years` is worse than its implicit conversion sequence to `months`
54
+ [[over.ics.rank]].
55
+
56
+ *Returns:* `ymdl + (-dm)`.
57
+
58
+ ``` cpp
59
+ constexpr year_month_day_last
60
+ operator+(const year_month_day_last& ymdl, const years& dy) noexcept;
61
+ ```
62
+
63
+ *Returns:* `{ymdl.year()+dy, ymdl.month_day_last()}`.
64
+
65
+ ``` cpp
66
+ constexpr year_month_day_last
67
+ operator+(const years& dy, const year_month_day_last& ymdl) noexcept;
68
+ ```
69
+
70
+ *Returns:* `ymdl + dy`.
71
+
72
+ ``` cpp
73
+ constexpr year_month_day_last
74
+ operator-(const year_month_day_last& ymdl, const years& dy) noexcept;
75
+ ```
76
+
77
+ *Returns:* `ymdl + (-dy)`.
78
+
79
+ ``` cpp
80
+ template<class charT, class traits>
81
+ basic_ostream<charT, traits>&
82
+ operator<<(basic_ostream<charT, traits>& os, const year_month_day_last& ymdl);
83
+ ```
84
+
85
+ *Effects:* Equivalent to:
86
+
87
+ ``` cpp
88
+ return os << format(os.getloc(), STATICALLY-WIDEN<charT>("{}/{}"),
89
+ ymdl.year(), ymdl.month_day_last());
90
+ ```
91
+