From Jason Turner

[time.cal.md.nonmembers]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmpba9ft2a2/{from.md → to.md} +51 -0
tmp/tmpba9ft2a2/{from.md → to.md} RENAMED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #### Non-member functions <a id="time.cal.md.nonmembers">[[time.cal.md.nonmembers]]</a>
2
+
3
+ ``` cpp
4
+ constexpr bool operator==(const month_day& x, const month_day& y) noexcept;
5
+ ```
6
+
7
+ *Returns:* `x.month() == y.month() && x.day() == y.day()`.
8
+
9
+ ``` cpp
10
+ constexpr strong_ordering operator<=>(const month_day& x, const month_day& y) noexcept;
11
+ ```
12
+
13
+ *Effects:* Equivalent to:
14
+
15
+ ``` cpp
16
+ if (auto c = x.month() <=> y.month(); c != 0) return c;
17
+ return x.day() <=> y.day();
18
+ ```
19
+
20
+ ``` cpp
21
+ template<class charT, class traits>
22
+ basic_ostream<charT, traits>&
23
+ operator<<(basic_ostream<charT, traits>& os, const month_day& md);
24
+ ```
25
+
26
+ *Effects:* Equivalent to:
27
+
28
+ ``` cpp
29
+ return os << format(os.getloc(), STATICALLY-WIDEN<charT>("{}/{}"),
30
+ md.month(), md.day());
31
+ ```
32
+
33
+ ``` cpp
34
+ template<class charT, class traits, class Alloc = allocator<charT>>
35
+ basic_istream<charT, traits>&
36
+ from_stream(basic_istream<charT, traits>& is, const charT* fmt,
37
+ month_day& md, basic_string<charT, traits, Alloc>* abbrev = nullptr,
38
+ minutes* offset = nullptr);
39
+ ```
40
+
41
+ *Effects:* Attempts to parse the input stream `is` into the `month_day`
42
+ `md` using the format flags given in the NTCTS `fmt` as specified in
43
+ [[time.parse]]. If the parse fails to decode a valid `month_day`,
44
+ `is.setstate(ios_base::failbit)` is called and `md` is not modified. If
45
+ `%Z` is used and successfully parsed, that value will be assigned to
46
+ `*abbrev` if `abbrev` is non-null. If `%z` (or a modified variant) is
47
+ used and successfully parsed, that value will be assigned to `*offset`
48
+ if `offset` is non-null.
49
+
50
+ *Returns:* `is`.
51
+