absl::DereferenceFormatter

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.

Synopsis

Declared in <absl/strings/str_join.h>

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

Return Value

A formatter that dereferences each element before formatting it.

Parameters

NameDescription
fThe formatter applied to the dereferenced element.