[depr.atomics.types.operations]

# Annex D (normative) Compatibility features [[depr]](./#depr)

## D.23 Deprecated atomic operations [[depr.atomics]](depr.atomics#types.operations)

### D.23.4 Operations on atomic types [depr.atomics.types.operations]

[ð](#lib:ATOMIC_VAR_INIT)

`#define ATOMIC_VAR_INIT(value) see below
`

[1](#1)

[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/future.tex#L977)

The macro expands to a token sequence suitable for constant initialization of
an atomic variable with static storage duration of a type that
is initialization-compatible with value[.](#1.sentence-1)

[*Note [1](#note-1)*:

This operation possibly needs to initialize locks[.](#1.sentence-2)

â *end note*]

Concurrent access to the variable being initialized,
even via an atomic operation,
constitutes a data race[.](#1.sentence-3)

[*Example [1](#example-1)*: atomic<int> v = ATOMIC_VAR_INIT(5); â *end example*]
