July 2007
Intermediate to advanced
332 pages
10h 4m
English
accessor class — Class that provides read and write access to a pair in a concurrent_hash_map.
#include "tbb/concurrent_hash_map.h" template<typename Key, typename T, typename HashCompare> class concurrent_hash_map<Key,T,HashCompare>::accessor;
An accessor permits read and write access to a key-value pair in a concurrent_hash_map. It is derived from a const_accessor, and thus can be implicitly cast to a const_accessor.
namespace tbb {
template<typename Key, typename T, typename HashCompare>
class concurrent_hash_map<Key,T,HashCompare>::accessor:
concurrent_hash_map<Key,T,HashCompare>::const_accessor {
public:
typedef std::pair<const Key,T> value_type;
value_type& operator*() const;
value_type* operator->() const;
};
}value_type&operator*() const
Effects: raises an assertion failure if empty() is true and TBB_DO_ASSERT is defined as nonzero.
Returns: reference to a key-value pair.
value_type*operator->() const
Returns: &operator*().