From Jason Turner

[time.cal.ymwdlast.members]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmpdl784t31/{from.md → to.md} +96 -0
tmp/tmpdl784t31/{from.md → to.md} RENAMED
@@ -0,0 +1,96 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #### Member functions <a id="time.cal.ymwdlast.members">[[time.cal.ymwdlast.members]]</a>
2
+
3
+ ``` cpp
4
+ constexpr year_month_weekday_last(const chrono::year& y, const chrono::month& m,
5
+ const chrono::weekday_last& wdl) noexcept;
6
+ ```
7
+
8
+ *Effects:* Initializes `y_` with `y`, `m_` with `m`, and `wdl_` with
9
+ `wdl`.
10
+
11
+ ``` cpp
12
+ constexpr year_month_weekday_last& operator+=(const months& m) noexcept;
13
+ ```
14
+
15
+ *Constraints:* If the argument supplied by the caller for the `months`
16
+ parameter is convertible to `years`, its implicit conversion sequence to
17
+ `years` is worse than its implicit conversion sequence to `months`
18
+ [[over.ics.rank]].
19
+
20
+ *Effects:* `*this = *this + m`.
21
+
22
+ *Returns:* `*this`.
23
+
24
+ ``` cpp
25
+ constexpr year_month_weekday_last& operator-=(const months& m) 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
+ *Effects:* `*this = *this - m`.
34
+
35
+ *Returns:* `*this`.
36
+
37
+ ``` cpp
38
+ constexpr year_month_weekday_last& operator+=(const years& y) noexcept;
39
+ ```
40
+
41
+ *Effects:* `*this = *this + y`.
42
+
43
+ *Returns:* `*this`.
44
+
45
+ ``` cpp
46
+ constexpr year_month_weekday_last& operator-=(const years& y) noexcept;
47
+ ```
48
+
49
+ *Effects:* `*this = *this - y`.
50
+
51
+ *Returns:* `*this`.
52
+
53
+ ``` cpp
54
+ constexpr chrono::year year() const noexcept;
55
+ ```
56
+
57
+ *Returns:* `y_`.
58
+
59
+ ``` cpp
60
+ constexpr chrono::month month() const noexcept;
61
+ ```
62
+
63
+ *Returns:* `m_`.
64
+
65
+ ``` cpp
66
+ constexpr chrono::weekday weekday() const noexcept;
67
+ ```
68
+
69
+ *Returns:* `wdl_.weekday()`.
70
+
71
+ ``` cpp
72
+ constexpr chrono::weekday_last weekday_last() const noexcept;
73
+ ```
74
+
75
+ *Returns:* `wdl_`.
76
+
77
+ ``` cpp
78
+ constexpr operator sys_days() const noexcept;
79
+ ```
80
+
81
+ *Returns:* If `ok() == true`, returns a `sys_days` that represents the
82
+ last `weekday()` of `year()/month()`. Otherwise the returned value is
83
+ unspecified.
84
+
85
+ ``` cpp
86
+ constexpr explicit operator local_days() const noexcept;
87
+ ```
88
+
89
+ *Returns:* `local_days{sys_days{*this}.time_since_epoch()}`.
90
+
91
+ ``` cpp
92
+ constexpr bool ok() const noexcept;
93
+ ```
94
+
95
+ *Returns:* `y_.ok() && m_.ok() && wdl_.ok()`.
96
+