Allows write access to elements and combines data access, locking, and garbage collection.
More...
#include <libpmemobj++/container/concurrent_hash_map.hpp>
|
using | value_type = typename concurrent_hash_map::value_type |
| Type of value.
|
|
|
reference | operator* () const |
| Return reference to associated value in hash table.
|
|
pointer | operator-> () const |
| Return pointer to associated value in hash table.
|
|
bool | empty () const |
|
void | release () |
| Release accessor. More...
|
|
template<typename Key, typename T, typename Hash, typename KeyEqual, typename MutexType, typename ScopedLockType>
class pmem::obj::concurrent_hash_map< Key, T, Hash, KeyEqual, MutexType, ScopedLockType >::accessor
Allows write access to elements and combines data access, locking, and garbage collection.
◆ empty()
template<typename Key , typename T , typename Hash , typename KeyEqual , typename MutexType , typename ScopedLockType >
- Returns
- true if accessor does not hold any element, false otherwise.
◆ release()
template<typename Key , typename T , typename Hash , typename KeyEqual , typename MutexType , typename ScopedLockType >
Release accessor.
Cannot be called inside of a transaction.
- Exceptions
-
The documentation for this class was generated from the following file: