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>;

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>;

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>;

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>;

Constructs a Hex from a pointer value.

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

Parameters

Name

Description

v

The value to format as hexadecimal.

spec

The padding specification to apply.

Created with MrDocs