absl::Hex::Hex

Constructors

Synopses

Declared in <absl/strings/str_cat.h>

Constructs a Hex from a 1-byte integral value.

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

Constructs a Hex from a 2-byte integral value.

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

Constructs a Hex from a 4-byte integral value.

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

Constructs a Hex from an 8-byte integral value.

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

Constructs a Hex from a pointer value.

template<typename Pointee>
explicit
Hex(
    Pointee* v,
    PadSpec spec = absl::kNoPad);
» more...

Parameters

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