From Jason Turner

[time.cal.ymdlast.members]

Diff to HTML by rtfpessoa

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