This class template provides the implementation for all possible decimal floating point formatting styles and the parsing of the format specification.

Synopsis

Declared in <bdldfp_decimal.h>

template<
    class t_VALUE,
    class t_CHAR>
struct Decimal_BslFmtFormatterImpl;

Description

The specified t_VALUE template type argument determines the type of decimal floating point value use, while the specified t_CHAR determines both the formatting string and the output's character type. The behavior is undefined unless t_VALUE is one of Decimal32, `Decimal64, or Decimal128, and `t_CHAR is on of char or `wchar_t`.

Member Functions

Name

Description

format

Format the specified value into the specified formatContext.

parse

Parse the specified parseContext and return an iterator, pointing to the beginning of the unparsed section of the format string.

Created with MrDocs