[#BloombergLP-bsls-AtomicUint64-swapAcqRel] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bsls.adoc[bsls]::xref:BloombergLP/bsls/AtomicUint64.adoc[AtomicUint64]::swapAcqRel :relfileprefix: ../../../ :mrdocs: Atomically set the value of this object to the specified `swapValue` and return its previous value, providing the acquire/release memory ordering guarantee. == Synopsis Declared in `<bsls_atomic.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bsls/Types/Uint64.adoc[Types::Uint64] swapAcqRel(xref:BloombergLP/bsls/Types/Uint64.adoc[Types::Uint64] swapValue); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#