[#BloombergLP-baltzo-LocalDatetime-swap] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/baltzo.adoc[baltzo]::xref:BloombergLP/baltzo/LocalDatetime.adoc[LocalDatetime]::swap :relfileprefix: ../../../ :mrdocs: Efficiently exchange the value of this object with the value of the specified `other` object. == Synopsis Declared in `<baltzo_localdatetime.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void swap(xref:BloombergLP/baltzo/LocalDatetime.adoc[LocalDatetime]& other); ---- == Description This method provides the no‐throw exception‐safety guarantee. The behavior is undefined unless this object was created with the same allocator as was `other`. == Parameters [cols="1,4"] |=== | Name| Description | *other* | the object with which to exchange values |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#