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

`PairFormatter` overloads

== Synopses

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

Function overload of PairFormatter() for using a default `AlphaNumFormatter()` for each Formatter in the pair&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&sol;&ast; implementation-defined &ast;&sol;::PairFormatterImpl&lt;&sol;&ast; implementation-defined &ast;&sol;::AlphaNumFormatterImpl, &sol;&ast; implementation-defined &ast;&sol;::AlphaNumFormatterImpl&gt;
xref:absl/PairFormatter-04.adoc[PairFormatter](std::string&lowbar;view sep);
----

[.small]#xref:absl/PairFormatter-04.adoc[_» more&period;&period;&period;_]#

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;


[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;
xref:absl/PairFormatter-02.adoc[PairFormatter](
    FirstFormatter f1,
    std::string&lowbar;view sep,
    SecondFormatter f2);
----

[.small]#xref:absl/PairFormatter-02.adoc[_» more&period;&period;&period;_]#

== Return Value

* A formatter for `std&colon;&colon;pair` elements using the default formatter&period;
* A formatter for `std&colon;&colon;pair` elements&period;

== Parameters

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


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