absl::DereferenceFormatter

DereferenceFormatter overloads

Synopses

Declared in <absl/strings/str_join.h>

Function overload of DereferenceFormatter() for using a default AlphaNumFormatter().

/* implementation-defined */::DereferenceFormatterImpl</* implementation-defined */::AlphaNumFormatterImpl>
DereferenceFormatter();
» more...

Formats its argument by dereferencing it and then applying the given formatter. This formatter is useful for formatting a container of pointer-to-T. This pattern often shows up when joining repeated fields in protocol buffers.

template<typename Formatter>
/* implementation-defined */::DereferenceFormatterImpl<Formatter>
DereferenceFormatter(Formatter&& f);
» more...

Return Value

  • A dereferencing formatter using the default formatter.
  • A formatter that dereferences each element before formatting it.

Parameters

NameDescription
fThe formatter applied to the dereferenced element.