[#BloombergLP-bsls-AtomicUint-swapAcqRel]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bsls.adoc[bsls]::xref:BloombergLP/bsls/AtomicUint.adoc[AtomicUint]::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"]
----
unsigned int
swapAcqRel(unsigned int swapValue);
----

== Return Value

previous value of this object

== Parameters

[cols="1,4"]
|===
| Name| Description
| *swapValue*
| value to store, returning the previous value
|===


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