proxygen
folly::MutableAtom< T, Atom > Struct Template Reference

#include <AtomicUnorderedMap.h>

Public Member Functions

 MutableAtom (const T &init)
 

Public Attributes

Atom< Tdata
 

Detailed Description

template<typename T, template< typename > class Atom = std::atomic>
struct folly::MutableAtom< T, Atom >

MutableAtom is a tiny wrapper than 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.

Definition at line 500 of file AtomicUnorderedMap.h.

Constructor & Destructor Documentation

template<typename T , template< typename > class Atom = std::atomic>
folly::MutableAtom< T, Atom >::MutableAtom ( const T init)
inlineexplicit

Definition at line 503 of file AtomicUnorderedMap.h.

503 : data(init) {}
void init(int *argc, char ***argv, bool removeFlags)
Definition: Init.cpp:34

Member Data Documentation

template<typename T , template< typename > class Atom = std::atomic>
Atom<T> folly::MutableAtom< T, Atom >::data
mutable

Definition at line 501 of file AtomicUnorderedMap.h.


The documentation for this struct was generated from the following file: