[#BloombergLP-bslfmt-basic_format_string-2constructor] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslfmt.adoc[bslfmt]::xref:BloombergLP/bslfmt/basic_format_string.adoc[basic_format_string]::basic_format_string :relfileprefix: ../../../ :mrdocs: Create an instance of this type from the specified `str`. This function only takes part in overload resolution if `str` is convertible to a `basic_string_view`. Construction is ill‐formed if `str` is not a compile‐time constant. == Synopsis Declared in `<bslfmt_format_string.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class t_STR, class = void> requires bsl::is_convertible< const t_STR&, bsl::basic_string_view<t_CHAR> >::value consteval basic_format_string(t_STR const& str); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#