[#BloombergLP-bsls-AtomicOperations_DefaultInt-08-initInt]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bsls.adoc[bsls]::xref:BloombergLP/bsls/AtomicOperations_DefaultInt-08.adoc[AtomicOperations&lowbar;DefaultInt]::initInt
:relfileprefix: ../../../
:mrdocs:

Initialize the specified `atomicInt` and set its value to the optionally specified `initialValue`&period;

== Synopsis

Declared in `&lt;bsls&lowbar;atomicoperations&lowbar;default&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
void
initInt(
    AtomicTypes::Int* atomicInt,
    int initialValue = 0);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *atomicInt*
| atomic integer to initialize
| *initialValue*
| value to store
|===


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