tmp/tmps8xadbfc/{from.md → to.md}
RENAMED
|
@@ -0,0 +1,71 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#### Member functions <a id="time.cal.month.members">[[time.cal.month.members]]</a>
|
| 2 |
+
|
| 3 |
+
``` cpp
|
| 4 |
+
constexpr explicit month(unsigned m) noexcept;
|
| 5 |
+
```
|
| 6 |
+
|
| 7 |
+
*Effects:* Initializes `m_` with `m`. The value held is unspecified if
|
| 8 |
+
`m` is not in the range \[`0`, `255`\].
|
| 9 |
+
|
| 10 |
+
``` cpp
|
| 11 |
+
constexpr month& operator++() noexcept;
|
| 12 |
+
```
|
| 13 |
+
|
| 14 |
+
*Effects:* `*this += months{1}`.
|
| 15 |
+
|
| 16 |
+
*Returns:* `*this`.
|
| 17 |
+
|
| 18 |
+
``` cpp
|
| 19 |
+
constexpr month operator++(int) noexcept;
|
| 20 |
+
```
|
| 21 |
+
|
| 22 |
+
*Effects:* `++(*this)`.
|
| 23 |
+
|
| 24 |
+
*Returns:* A copy of `*this` as it existed on entry to this member
|
| 25 |
+
function.
|
| 26 |
+
|
| 27 |
+
``` cpp
|
| 28 |
+
constexpr month& operator--() noexcept;
|
| 29 |
+
```
|
| 30 |
+
|
| 31 |
+
*Effects:* `*this -= months{1}`.
|
| 32 |
+
|
| 33 |
+
*Returns:* `*this`.
|
| 34 |
+
|
| 35 |
+
``` cpp
|
| 36 |
+
constexpr month operator--(int) noexcept;
|
| 37 |
+
```
|
| 38 |
+
|
| 39 |
+
*Effects:* `–(*this)`.
|
| 40 |
+
|
| 41 |
+
*Returns:* A copy of `*this` as it existed on entry to this member
|
| 42 |
+
function.
|
| 43 |
+
|
| 44 |
+
``` cpp
|
| 45 |
+
constexpr month& operator+=(const months& m) noexcept;
|
| 46 |
+
```
|
| 47 |
+
|
| 48 |
+
*Effects:* `*this = *this + m`.
|
| 49 |
+
|
| 50 |
+
*Returns:* `*this`.
|
| 51 |
+
|
| 52 |
+
``` cpp
|
| 53 |
+
constexpr month& operator-=(const months& m) noexcept;
|
| 54 |
+
```
|
| 55 |
+
|
| 56 |
+
*Effects:* `*this = *this - m`.
|
| 57 |
+
|
| 58 |
+
*Returns:* `*this`.
|
| 59 |
+
|
| 60 |
+
``` cpp
|
| 61 |
+
constexpr explicit operator unsigned() const noexcept;
|
| 62 |
+
```
|
| 63 |
+
|
| 64 |
+
*Returns:* `m_`.
|
| 65 |
+
|
| 66 |
+
``` cpp
|
| 67 |
+
constexpr bool ok() const noexcept;
|
| 68 |
+
```
|
| 69 |
+
|
| 70 |
+
*Returns:* `1 <= m_ && m_ <= 12`.
|
| 71 |
+
|