tmp/tmpoqpolbm5/{from.md → to.md}
RENAMED
|
@@ -0,0 +1,109 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#### Member functions <a id="time.cal.wd.members">[[time.cal.wd.members]]</a>
|
| 2 |
+
|
| 3 |
+
``` cpp
|
| 4 |
+
constexpr explicit weekday(unsigned wd) noexcept;
|
| 5 |
+
```
|
| 6 |
+
|
| 7 |
+
*Effects:* Initializes `wd_` with `wd == 7 ? 0 : wd`. The value held is
|
| 8 |
+
unspecified if `wd` is not in the range \[`0`, `255`\].
|
| 9 |
+
|
| 10 |
+
``` cpp
|
| 11 |
+
constexpr weekday(const sys_days& dp) noexcept;
|
| 12 |
+
```
|
| 13 |
+
|
| 14 |
+
*Effects:* Computes what day of the week corresponds to the `sys_days`
|
| 15 |
+
`dp`, and initializes that day of the week in `wd_`.
|
| 16 |
+
|
| 17 |
+
[*Example 1*: If `dp` represents 1970-01-01, the constructed `weekday`
|
| 18 |
+
represents Thursday by storing `4` in `wd_`. — *end example*]
|
| 19 |
+
|
| 20 |
+
``` cpp
|
| 21 |
+
constexpr explicit weekday(const local_days& dp) noexcept;
|
| 22 |
+
```
|
| 23 |
+
|
| 24 |
+
*Effects:* Computes what day of the week corresponds to the `local_days`
|
| 25 |
+
`dp`, and initializes that day of the week in `wd_`.
|
| 26 |
+
|
| 27 |
+
*Ensures:* The value is identical to that constructed from
|
| 28 |
+
`sys_days{dp.time_since_epoch()}`.
|
| 29 |
+
|
| 30 |
+
``` cpp
|
| 31 |
+
constexpr weekday& operator++() noexcept;
|
| 32 |
+
```
|
| 33 |
+
|
| 34 |
+
*Effects:* `*this += days{1}`.
|
| 35 |
+
|
| 36 |
+
*Returns:* `*this`.
|
| 37 |
+
|
| 38 |
+
``` cpp
|
| 39 |
+
constexpr weekday operator++(int) noexcept;
|
| 40 |
+
```
|
| 41 |
+
|
| 42 |
+
*Effects:* `++(*this)`.
|
| 43 |
+
|
| 44 |
+
*Returns:* A copy of `*this` as it existed on entry to this member
|
| 45 |
+
function.
|
| 46 |
+
|
| 47 |
+
``` cpp
|
| 48 |
+
constexpr weekday& operator--() noexcept;
|
| 49 |
+
```
|
| 50 |
+
|
| 51 |
+
*Effects:* `*this -= days{1}`.
|
| 52 |
+
|
| 53 |
+
*Returns:* `*this`.
|
| 54 |
+
|
| 55 |
+
``` cpp
|
| 56 |
+
constexpr weekday operator--(int) noexcept;
|
| 57 |
+
```
|
| 58 |
+
|
| 59 |
+
*Effects:* `–(*this)`.
|
| 60 |
+
|
| 61 |
+
*Returns:* A copy of `*this` as it existed on entry to this member
|
| 62 |
+
function.
|
| 63 |
+
|
| 64 |
+
``` cpp
|
| 65 |
+
constexpr weekday& operator+=(const days& d) noexcept;
|
| 66 |
+
```
|
| 67 |
+
|
| 68 |
+
*Effects:* `*this = *this + d`.
|
| 69 |
+
|
| 70 |
+
*Returns:* `*this`.
|
| 71 |
+
|
| 72 |
+
``` cpp
|
| 73 |
+
constexpr weekday& operator-=(const days& d) noexcept;
|
| 74 |
+
```
|
| 75 |
+
|
| 76 |
+
*Effects:* `*this = *this - d`.
|
| 77 |
+
|
| 78 |
+
*Returns:* `*this`.
|
| 79 |
+
|
| 80 |
+
``` cpp
|
| 81 |
+
constexpr unsigned c_encoding() const noexcept;
|
| 82 |
+
```
|
| 83 |
+
|
| 84 |
+
*Returns:* `wd_`.
|
| 85 |
+
|
| 86 |
+
``` cpp
|
| 87 |
+
constexpr unsigned iso_encoding() const noexcept;
|
| 88 |
+
```
|
| 89 |
+
|
| 90 |
+
*Returns:* `wd_ == 0u ? 7u : wd_`.
|
| 91 |
+
|
| 92 |
+
``` cpp
|
| 93 |
+
constexpr bool ok() const noexcept;
|
| 94 |
+
```
|
| 95 |
+
|
| 96 |
+
*Returns:* `wd_ <= 6`.
|
| 97 |
+
|
| 98 |
+
``` cpp
|
| 99 |
+
constexpr weekday_indexed operator[](unsigned index) const noexcept;
|
| 100 |
+
```
|
| 101 |
+
|
| 102 |
+
*Returns:* `{*this, index}`.
|
| 103 |
+
|
| 104 |
+
``` cpp
|
| 105 |
+
constexpr weekday_last operator[](last_spec) const noexcept;
|
| 106 |
+
```
|
| 107 |
+
|
| 108 |
+
*Returns:* `weekday_last{*this}`.
|
| 109 |
+
|