[#absl-PairFormatter-02]
= xref:absl.adoc[absl]::PairFormatter
:relfileprefix: ../
:mrdocs:

Formats a `std&colon;&colon;pair` by putting a given separator between the pair&apos;s `&period;first` and `&period;second` members&period; This formatter allows you to specify custom Formatters for both the first and second member of each pair&period;

== Synopsis

Declared in `&lt;absl&sol;strings&sol;str&lowbar;join&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    typename FirstFormatter,
    typename SecondFormatter&gt;
&sol;&ast; implementation-defined &ast;&sol;::PairFormatterImpl&lt;FirstFormatter, SecondFormatter&gt;
PairFormatter(
    FirstFormatter f1,
    std::string&lowbar;view sep,
    SecondFormatter f2);
----

== Return Value

A formatter for `std&colon;&colon;pair` elements&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *f1*
| The formatter for the pair&apos;s `&period;first` member&period;
| *sep*
| The separator placed between the two members&period;
| *f2*
| The formatter for the pair&apos;s `&period;second` member&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
