[#BloombergLP-baltzo-swap-02] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/baltzo.adoc[baltzo]::swap :relfileprefix: ../../ :mrdocs: Exchange the values of the specified `a` and `b` objects. == Synopsis Declared in `<baltzo_localdatetime.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void swap( xref:BloombergLP/baltzo/LocalDatetime.adoc[LocalDatetime]& a, xref:BloombergLP/baltzo/LocalDatetime.adoc[LocalDatetime]& b); ---- == Description This function provides the no‐throw exception‐safety guarantee if the two objects were created with the same allocator and the basic guarantee otherwise. == Parameters [cols="1,4"] |=== | Name| Description | *a* | the first object | *b* | the second object |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#