tmp/tmpru73nn5h/{from.md → to.md}
RENAMED
|
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#### Formatter specialization for `vector<bool>` <a id="vector.bool.fmt">[[vector.bool.fmt]]</a>
|
| 2 |
+
|
| 3 |
+
``` cpp
|
| 4 |
+
namespace std {
|
| 5 |
+
template<class T, class charT>
|
| 6 |
+
requires is-vector-bool-reference<T>
|
| 7 |
+
struct formatter<T, charT> {
|
| 8 |
+
private:
|
| 9 |
+
formatter<bool, charT> underlying_; // exposition only
|
| 10 |
+
|
| 11 |
+
public:
|
| 12 |
+
template<class ParseContext>
|
| 13 |
+
constexpr typename ParseContext::iterator
|
| 14 |
+
parse(ParseContext& ctx);
|
| 15 |
+
|
| 16 |
+
template<class FormatContext>
|
| 17 |
+
typename FormatContext::iterator
|
| 18 |
+
format(const T& ref, FormatContext& ctx) const;
|
| 19 |
+
};
|
| 20 |
+
}
|
| 21 |
+
```
|
| 22 |
+
|
| 23 |
+
``` cpp
|
| 24 |
+
template<class ParseContext>
|
| 25 |
+
constexpr typename ParseContext::iterator
|
| 26 |
+
parse(ParseContext& ctx);
|
| 27 |
+
```
|
| 28 |
+
|
| 29 |
+
Equivalent to: `return `*`underlying_`*`.parse(ctx);`
|
| 30 |
+
|
| 31 |
+
``` cpp
|
| 32 |
+
template<class FormatContext>
|
| 33 |
+
typename FormatContext::iterator
|
| 34 |
+
format(const T& ref, FormatContext& ctx) const;
|
| 35 |
+
```
|
| 36 |
+
|
| 37 |
+
Equivalent to: `return `*`underlying_`*`.format(ref, ctx);`
|
| 38 |
+
|