absl::Hex::Hex

Constructs a Hex from a 1-byte integral value.

Synopsis

Declared in <absl/strings/str_cat.h>

template<typename Int>
explicit
Hex(
    Int v,
    PadSpec spec = absl::kNoPad)
requires sizeof(Int) == 1 && !std::is_pointer_v<Int>;

Parameters

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