Stores a set of decimal string conversion parameters for use within AlphaNum string conversions.

Synopsis

Declared in <absl/strings/str_cat.h>

struct Dec;

Description

Dec is slower than the default integer conversion, so use it only if you need padding.

Member Functions

Name

Description

Dec [constructor]

Constructs a Dec from an integral value.

Data Members

Name

Description

fill

The fill character used for padding.

neg

Whether the value is negative.

value

The magnitude of the value to format.

width

The minimum field width of the output.

Friends

Name

Description

absl::AbslStringify

Appends the decimal representation of dec to sink.

Created with MrDocs