Name
accessor class — Class that provides read and write access to a pair in a concurrent_hash_map
.
Synopsis
#include "tbb/concurrent_hash_map.h" template<typename Key, typename T, typename HashCompare> class concurrent_hash_map<Key,T,HashCompare>::accessor;
Description
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
.
Members
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()
istrue
andTBB_DO_ASSERT
is defined as nonzero.Returns: reference to a key-value pair.
-
value_type*operator->() const
Returns:
&operator*()
.
Get Intel Threading Building Blocks now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.