absl::Dec

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

NameDescription
Dec [constructor]Constructs a Dec from an integral value.

Data Members

NameDescription
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

NameDescription
absl::AbslStringifyAppends the decimal representation of dec to sink.