tmp/tmpvaoy96um/{from.md → to.md}
RENAMED
|
@@ -63,11 +63,11 @@ constexpr year_month_day(const year_month_day_last& ymdl) noexcept;
|
|
| 63 |
|
| 64 |
*Effects:* Initializes `y_` with `ymdl.year()`, `m_` with
|
| 65 |
`ymdl.month()`, and `d_` with `ymdl.day()`.
|
| 66 |
|
| 67 |
[*Note 1*: This conversion from `year_month_day_last` to
|
| 68 |
-
`year_month_day`
|
| 69 |
`year_month_day_last` to a `sys_days`, and then converting that
|
| 70 |
`sys_days` to a `year_month_day`. — *end note*]
|
| 71 |
|
| 72 |
``` cpp
|
| 73 |
constexpr year_month_day(const sys_days& dp) noexcept;
|
|
@@ -247,11 +247,11 @@ constexpr year_month_day operator+(const year_month_day& ymd, const years& dy) n
|
|
| 247 |
```
|
| 248 |
|
| 249 |
*Returns:* `(ymd.year() + dy) / ymd.month() / ymd.day()`.
|
| 250 |
|
| 251 |
[*Note 2*: If `ymd.month()` is February and `ymd.day()` is not in the
|
| 252 |
-
range \[`1d`, `28d`\], `ok()`
|
| 253 |
`year_month_day`. — *end note*]
|
| 254 |
|
| 255 |
``` cpp
|
| 256 |
constexpr year_month_day operator+(const years& dy, const year_month_day& ymd) noexcept;
|
| 257 |
```
|
|
|
|
| 63 |
|
| 64 |
*Effects:* Initializes `y_` with `ymdl.year()`, `m_` with
|
| 65 |
`ymdl.month()`, and `d_` with `ymdl.day()`.
|
| 66 |
|
| 67 |
[*Note 1*: This conversion from `year_month_day_last` to
|
| 68 |
+
`year_month_day` can be more efficient than converting a
|
| 69 |
`year_month_day_last` to a `sys_days`, and then converting that
|
| 70 |
`sys_days` to a `year_month_day`. — *end note*]
|
| 71 |
|
| 72 |
``` cpp
|
| 73 |
constexpr year_month_day(const sys_days& dp) noexcept;
|
|
|
|
| 247 |
```
|
| 248 |
|
| 249 |
*Returns:* `(ymd.year() + dy) / ymd.month() / ymd.day()`.
|
| 250 |
|
| 251 |
[*Note 2*: If `ymd.month()` is February and `ymd.day()` is not in the
|
| 252 |
+
range \[`1d`, `28d`\], `ok()` can return `false` for the resultant
|
| 253 |
`year_month_day`. — *end note*]
|
| 254 |
|
| 255 |
``` cpp
|
| 256 |
constexpr year_month_day operator+(const years& dy, const year_month_day& ymd) noexcept;
|
| 257 |
```
|