From Jason Turner

[time.cal.year.members]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmpey9wmh8z/{from.md → to.md} +101 -0
tmp/tmpey9wmh8z/{from.md → to.md} RENAMED
@@ -0,0 +1,101 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #### Member functions <a id="time.cal.year.members">[[time.cal.year.members]]</a>
2
+
3
+ ``` cpp
4
+ constexpr explicit year(int y) noexcept;
5
+ ```
6
+
7
+ *Effects:* Initializes `y_` with `y`. The value held is unspecified if
8
+ `y` is not in the range \[`-32767`, `32767`\].
9
+
10
+ ``` cpp
11
+ constexpr year& operator++() noexcept;
12
+ ```
13
+
14
+ *Effects:* `++y_`.
15
+
16
+ *Returns:* `*this`.
17
+
18
+ ``` cpp
19
+ constexpr year 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 year& operator--() noexcept;
29
+ ```
30
+
31
+ *Effects:* `–y_`.
32
+
33
+ *Returns:* `*this`.
34
+
35
+ ``` cpp
36
+ constexpr year 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 year& operator+=(const years& y) noexcept;
46
+ ```
47
+
48
+ *Effects:* `*this = *this + y`.
49
+
50
+ *Returns:* `*this`.
51
+
52
+ ``` cpp
53
+ constexpr year& operator-=(const years& y) noexcept;
54
+ ```
55
+
56
+ *Effects:* `*this = *this - y`.
57
+
58
+ *Returns:* `*this`.
59
+
60
+ ``` cpp
61
+ constexpr year operator+() const noexcept;
62
+ ```
63
+
64
+ *Returns:* `*this`.
65
+
66
+ ``` cpp
67
+ constexpr year year::operator-() const noexcept;
68
+ ```
69
+
70
+ *Returns:* `year{-y_}`.
71
+
72
+ ``` cpp
73
+ constexpr bool is_leap() const noexcept;
74
+ ```
75
+
76
+ *Returns:* `y_ % 4 == 0 && (y_ % 100 != 0 || y_ % 400 == 0)`.
77
+
78
+ ``` cpp
79
+ constexpr explicit operator int() const noexcept;
80
+ ```
81
+
82
+ *Returns:* `y_`.
83
+
84
+ ``` cpp
85
+ constexpr bool ok() const noexcept;
86
+ ```
87
+
88
+ *Returns:* `min().y_ <= y_ && y_ <= max().y_`.
89
+
90
+ ``` cpp
91
+ static constexpr year min() noexcept;
92
+ ```
93
+
94
+ *Returns:* `year{-32767}`.
95
+
96
+ ``` cpp
97
+ static constexpr year max() noexcept;
98
+ ```
99
+
100
+ *Returns:* `year{32767}`.
101
+