From Jason Turner

[time.cal.ymwd.nonmembers]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmp42nsty1y/{from.md → to.md} +76 -0
tmp/tmp42nsty1y/{from.md → to.md} RENAMED
@@ -0,0 +1,76 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #### Non-member functions <a id="time.cal.ymwd.nonmembers">[[time.cal.ymwd.nonmembers]]</a>
2
+
3
+ ``` cpp
4
+ constexpr bool operator==(const year_month_weekday& x, const year_month_weekday& y) noexcept;
5
+ ```
6
+
7
+ *Returns:*
8
+
9
+ ``` cpp
10
+ x.year() == y.year() && x.month() == y.month() && x.weekday_indexed() == y.weekday_indexed()
11
+ ```
12
+
13
+ ``` cpp
14
+ constexpr year_month_weekday operator+(const year_month_weekday& ymwd, const months& dm) noexcept;
15
+ ```
16
+
17
+ *Constraints:* If the argument supplied by the caller for the `months`
18
+ parameter is convertible to `years`, its implicit conversion sequence to
19
+ `years` is worse than its implicit conversion sequence to `months`
20
+ [[over.ics.rank]].
21
+
22
+ *Returns:* `(ymwd.year() / ymwd.month() + dm) / ymwd.weekday_indexed()`.
23
+
24
+ ``` cpp
25
+ constexpr year_month_weekday operator+(const months& dm, const year_month_weekday& ymwd) noexcept;
26
+ ```
27
+
28
+ *Constraints:* If the argument supplied by the caller for the `months`
29
+ parameter is convertible to `years`, its implicit conversion sequence to
30
+ `years` is worse than its implicit conversion sequence to `months`
31
+ [[over.ics.rank]].
32
+
33
+ *Returns:* `ymwd + dm`.
34
+
35
+ ``` cpp
36
+ constexpr year_month_weekday operator-(const year_month_weekday& ymwd, const months& dm) 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:* `ymwd + (-dm)`.
45
+
46
+ ``` cpp
47
+ constexpr year_month_weekday operator+(const year_month_weekday& ymwd, const years& dy) noexcept;
48
+ ```
49
+
50
+ *Returns:* `{ymwd.year()+dy, ymwd.month(), ymwd.weekday_indexed()}`.
51
+
52
+ ``` cpp
53
+ constexpr year_month_weekday operator+(const years& dy, const year_month_weekday& ymwd) noexcept;
54
+ ```
55
+
56
+ *Returns:* `ymwd + dy`.
57
+
58
+ ``` cpp
59
+ constexpr year_month_weekday operator-(const year_month_weekday& ymwd, const years& dy) noexcept;
60
+ ```
61
+
62
+ *Returns:* `ymwd + (-dy)`.
63
+
64
+ ``` cpp
65
+ template<class charT, class traits>
66
+ basic_ostream<charT, traits>&
67
+ operator<<(basic_ostream<charT, traits>& os, const year_month_weekday& ymwd);
68
+ ```
69
+
70
+ *Effects:* Equivalent to:
71
+
72
+ ``` cpp
73
+ return os << format(os.getloc(), STATICALLY-WIDEN<charT>("{}/{}/{}"),
74
+ ymwd.year(), ymwd.month(), ymwd.weekday_indexed());
75
+ ```
76
+