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,
    /* implementation-defined */ const& a1,
    /* implementation-defined */ const& a2,
    /* implementation-defined */ const& a3,
    /* implementation-defined */ const& a4,
    /* implementation-defined */ const& a5,
    /* implementation-defined */ const& a6,
    /* implementation-defined */ const& a7);

Parameters

Name

Description

output

The string that the substituted result is appended to.

format

The format string with $0‐`$9` placeholders.

a0

Substitution argument for $0.

a1

Substitution argument for $1.

a2

Substitution argument for $2.

a3

Substitution argument for $3.

a4

Substitution argument for $4.

a5

Substitution argument for $5.

a6

Substitution argument for $6.

a7

Substitution argument for $7.

Created with MrDocs