MutableAtom is a tiny wrapper that gives you the option of atomically updating values inserted into an AtomicUnorderedInsertMap<K, MutableAtom<V>>. This relies on AtomicUnorderedInsertMap's guarantee that it doesn't move values.
Declared in <folly/AtomicUnorderedMap.h>
template<
typename T,
template<typename> typename Atom = atomic>
struct MutableAtom;
| Name | Description |
|---|---|
MutableAtom [constructor] | Construct the wrapper, initializing the atomic value with init. |
| Name | Description |
|---|---|
data | The wrapped atomic value. |