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() is true and TBB_DO_ASSERT is defined as nonzero.

Returns: reference to a key-value pair.

value_type*operator->() const

Returns: &operator*().

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.222.69.152