[#BloombergLP-bsls-AtomicOperations_ALL_ALL_ClangIntrinsics-swapInt64] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bsls.adoc[bsls]::xref:BloombergLP/bsls/AtomicOperations_ALL_ALL_ClangIntrinsics.adoc[AtomicOperations_ALL_ALL_ClangIntrinsics]::swapInt64 :relfileprefix: ../../../ :mrdocs: Atomically swap `atomicInt` with sequential consistency. == Synopsis Declared in `<bsls_atomicoperations_all_all_clangintrinsics.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static xref:BloombergLP/bsls/Types/Int64.adoc[Types::Int64] swapInt64( xref:BloombergLP/bsls/Atomic_TypeTraits-0b/Int64.adoc[AtomicTypes::Int64]* atomicInt, xref:BloombergLP/bsls/Types/Int64.adoc[Types::Int64] swapValue); ---- == Description Atomically set the value of the specified `atomicInt` to the specified `swapValue`, and return its previous value, providing the sequential consistency memory ordering guarantee. == Return Value previous value of `atomicInt` == Parameters [cols="1,4"] |=== | Name| Description | *atomicInt* | atomic 64‐bit integer to modify | *swapValue* | value to store in `atomicInt` |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#