Type that wraps a basic_string_view for use by formatting function. The constructor performs additional compile‐time checks of the format string provided (not yet implemented).

Synopsis

Declared in <bslfmt_format_string.h>

template<
    class t_CHAR,
    class... t_ARGS>
class basic_format_string;

Member Functions

Name

Description

basic_format_string [constructor]

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.

get

Return the wrapped basic_string_view contained by this instance.

Friends

Name

Description

BloombergLP::bslfmt::Format_String_TestUpdater

This is a component‐private type which enables test drivers to work around the compile‐time restrictions in basic_format_string construction.

Created with MrDocs