From Jason Turner

[format.fmt.string]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmpt5zsz5ol/{from.md → to.md} +30 -0
tmp/tmpt5zsz5ol/{from.md → to.md} RENAMED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ### Class template `basic_format_string` <a id="format.fmt.string">[[format.fmt.string]]</a>
2
+
3
+ ``` cpp
4
+ namespace std {
5
+ template<class charT, class... Args>
6
+ struct basic_format_string {
7
+ private:
8
+ basic_string_view<charT> str; // exposition only
9
+
10
+ public:
11
+ template<class T> consteval basic_format_string(const T& s);
12
+
13
+ constexpr basic_string_view<charT> get() const noexcept { return str; }
14
+ };
15
+ }
16
+ ```
17
+
18
+ ``` cpp
19
+ template<class T> consteval basic_format_string(const T& s);
20
+ ```
21
+
22
+ *Constraints:* `const T&` models
23
+ `convertible_to<basic_string_view<charT>>`.
24
+
25
+ *Effects:* Direct-non-list-initializes *str* with `s`.
26
+
27
+ *Remarks:* A call to this function is not a core constant
28
+ expression [[expr.const]] unless there exist `args` of types `Args` such
29
+ that *str* is a format string for `args`.
30
+