From Jason Turner

[format.range.fmtdef]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmp5r2_02mo/{from.md → to.md} +57 -0
tmp/tmp5r2_02mo/{from.md → to.md} RENAMED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #### Class template *`range-default-formatter`* <a id="format.range.fmtdef">[[format.range.fmtdef]]</a>
2
+
3
+ ``` cpp
4
+ namespace std {
5
+ template<ranges::input_range R, class charT>
6
+ struct range-default-formatter<range_format::sequence, R, charT> { // exposition only
7
+ private:
8
+ using maybe-const-r = fmt-maybe-const<R, charT>; // exposition only
9
+ range_formatter<remove_cvref_t<ranges::range_reference_t<maybe-const-r>>,
10
+ charT> underlying_; // exposition only
11
+
12
+ public:
13
+ constexpr void set_separator(basic_string_view<charT> sep) noexcept;
14
+ constexpr void set_brackets(basic_string_view<charT> opening,
15
+ basic_string_view<charT> closing) noexcept;
16
+
17
+ template<class ParseContext>
18
+ constexpr typename ParseContext::iterator
19
+ parse(ParseContext& ctx);
20
+
21
+ template<class FormatContext>
22
+ typename FormatContext::iterator
23
+ format(maybe-const-r& elems, FormatContext& ctx) const;
24
+ };
25
+ }
26
+ ```
27
+
28
+ ``` cpp
29
+ constexpr void set_separator(basic_string_view<charT> sep) noexcept;
30
+ ```
31
+
32
+ *Effects:* Equivalent to: *`underlying_`*`.set_separator(sep);`
33
+
34
+ ``` cpp
35
+ constexpr void set_brackets(basic_string_view<charT> opening,
36
+ basic_string_view<charT> closing) noexcept;
37
+ ```
38
+
39
+ *Effects:* Equivalent to:
40
+ *`underlying_`*`.set_brackets(opening, closing);`
41
+
42
+ ``` cpp
43
+ template<class ParseContext>
44
+ constexpr typename ParseContext::iterator
45
+ parse(ParseContext& ctx);
46
+ ```
47
+
48
+ *Effects:* Equivalent to: `return `*`underlying_`*`.parse(ctx);`
49
+
50
+ ``` cpp
51
+ template<class FormatContext>
52
+ typename FormatContext::iterator
53
+ format(maybe-const-r& elems, FormatContext& ctx) const;
54
+ ```
55
+
56
+ *Effects:* Equivalent to: `return `*`underlying_`*`.format(elems, ctx);`
57
+