absl::SubstituteAndAppend

Overload of SubstituteAndAppend() that fails to compile when the number of placeholders does not match the number of arguments.

Synopsis

Declared in <absl/strings/substitute.h>

void
SubstituteAndAppend(
    std::string* output,
    char const* format,
    /* implementation-defined */ const& a0);

Parameters

NameDescription
outputThe string that the substituted result is appended to.
formatThe format string with $0-$9 placeholders.
a0Substitution argument for $0.