[#BloombergLP-bsls-AtomicPointer-swapAcqRel]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bsls.adoc[bsls]::xref:BloombergLP/bsls/AtomicPointer.adoc[AtomicPointer]::swapAcqRel
:relfileprefix: ../../../
:mrdocs:

Atomically set the value of this object to the specified `swapValue` and return its previous value, providing the acquire&sol;release memory ordering guarantee&period;

== Synopsis

Declared in `&lt;bsls&lowbar;atomic&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
TYPE*
swapAcqRel(TYPE* swapValue);
----


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