absl::Dec::Dec

Constructs a Dec from an integral value.

Synopsis

Declared in <absl/strings/str_cat.h>

template<typename Int>
explicit
Dec(
    Int v,
    PadSpec spec = absl::kNoPad)
requires sizeof(Int) <= 8;

Parameters

NameDescription
vThe value to format as decimal.
specThe padding specification to apply.