xenium
List of all members
xenium::harris_michael_hash_map< Key, Value, Policies >::accessor Class Reference

An accessor to safely access the value of an element. More...

#include <harris_michael_hash_map.hpp>

Detailed Description

template<class Key, class Value, class... Policies>
class xenium::harris_michael_hash_map< Key, Value, Policies >::accessor

An accessor to safely access the value of an element.

It is used as result type of operator[] to provide a similar behaviour as the STL map/unordered_map classes. However, the accessor has to be dereferenced to access the underlying value (operator*).

Note: an accessor instance internally holds a guard_ptr to the value's element.