|
BDE 4.39.x Production Release
|
Provide a string formatter for use by bsl::format.
Provide a string formatter for use by bsl::format
t_CHAR *const t_CHAR *std::basic_stringbsl::basic_stringstd::basic_string_viewbsl::basic_string_viewbslstl:::StringRefbsl_format.h
This component provides partial specializations for the bsl::formatter type covering the case for string formatting. Those types meet the requirements as specified in [formatter.requirements] and support all functionality supported by the C++20 std::formatter string type specializations with the following exceptions:
C locales.This header is not intended to be included directly. Please include <bsl_format.h> to be able to use specializations of the bsl::formatter for strings.
In this section we show the intended use of this component.
We do not expect most users of bsl::format to interact with this type directly and instead use bsl::format or bsl::vformat, so this example is necessarily unrealistic.
Suppose we want to test this formatter's ability to a substring with padding and minimum width.