22
General utilities library
[utilities]
22.14
Formatting
[format]
22.14.4
Class template
basic_
format_
string
[format.fmt.string]
namespace
std
{
template
<
class
charT,
class
.
.
.
Args
>
struct
basic_format_string
{
private
:
basic_string_view
<
charT
>
str
;
//
exposition only
public
:
template
<
class
T
>
consteval
basic_format_string
(
const
T
&
s
)
;
constexpr
basic_string_view
<
charT
>
get
(
)
const
noexcept
{
return
str
;
}
}
;
}
🔗
template
<
class
T
>
consteval
basic_format_string
(
const
T
&
s
)
;
1
#
Constraints
:
const
T
&
models
convertible_
to
<
basic_
string_
view
<
charT
>
>
.
2
#
Effects
: Direct-non-list-initializes
str
with
s
.
3
#
Remarks
: A call to this function is not a core constant expression (
[expr.
const]
) unless there exist
args
of types
Args
such that
str
is a format string for
args
.