[#BloombergLP-baltzo-swap-09f]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/baltzo.adoc[baltzo]::swap
:relfileprefix: ../../
:mrdocs:

`swap` overloads

== Synopses

Declared in `&lt;baltzo&lowbar;localdatetime&period;h&gt;`

Exchange the values of the specified `a` and `b` objects&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
xref:BloombergLP/baltzo/swap-02.adoc[swap](
    xref:BloombergLP/baltzo/LocalDatetime.adoc[LocalDatetime]& a,
    xref:BloombergLP/baltzo/LocalDatetime.adoc[LocalDatetime]& b);
----

[.small]#xref:BloombergLP/baltzo/swap-02.adoc[_» more&period;&period;&period;_]#

Exchange the values of the specified `a` and `b` objects&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
xref:BloombergLP/baltzo/swap-01.adoc[swap](
    xref:BloombergLP/baltzo/LocalTimeDescriptor.adoc[LocalTimeDescriptor]& a,
    xref:BloombergLP/baltzo/LocalTimeDescriptor.adoc[LocalTimeDescriptor]& b);
----

[.small]#xref:BloombergLP/baltzo/swap-01.adoc[_» more&period;&period;&period;_]#

Exchange the values of the specified `a` and `b` objects&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
xref:BloombergLP/baltzo/swap-0c.adoc[swap](
    xref:BloombergLP/baltzo/LocalTimePeriod.adoc[LocalTimePeriod]& a,
    xref:BloombergLP/baltzo/LocalTimePeriod.adoc[LocalTimePeriod]& b);
----

[.small]#xref:BloombergLP/baltzo/swap-0c.adoc[_» more&period;&period;&period;_]#

Exchange the values of the specified `a` and `b` objects&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
xref:BloombergLP/baltzo/swap-096.adoc[swap](
    xref:BloombergLP/baltzo/Zoneinfo.adoc[Zoneinfo]& a,
    xref:BloombergLP/baltzo/Zoneinfo.adoc[Zoneinfo]& b);
----

[.small]#xref:BloombergLP/baltzo/swap-096.adoc[_» more&period;&period;&period;_]#

Efficiently exchange the values of the specified `a` and `b` objects&period; This function provides the no&hyphen;throw exception&hyphen;safety guarantee&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
xref:BloombergLP/baltzo/swap-0a.adoc[swap](
    xref:BloombergLP/baltzo/ZoneinfoBinaryHeader.adoc[baltzo::ZoneinfoBinaryHeader]& a,
    xref:BloombergLP/baltzo/ZoneinfoBinaryHeader.adoc[baltzo::ZoneinfoBinaryHeader]& b);
----

[.small]#xref:BloombergLP/baltzo/swap-0a.adoc[_» more&period;&period;&period;_]#

== Parameters

[cols="1,4"]
|===
| Name| Description
| *a*
| the first object
| *b*
| the second object
|===


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