Turi Create  4.0
turi::hopscotch_map< Key, Value, Hash, KeyEqual > Class Template Reference

#include <core/generics/hopscotch_map.hpp>

Detailed Description

template<typename Key, typename Value, typename Hash = _HOPSCOTCH_MAP_DEFAULT_HASH, typename KeyEqual = std::equal_to<Key>>
class turi::hopscotch_map< Key, Value, Hash, KeyEqual >

A hopscotch hash map. More or less similar interface as boost::unordered_map, not necessarily entirely STL compliant. Really should only be used to store small keys and trivial values.

Template Parameters
KeyThe key of the map
ValueThe value to store for each key
HashThe hash functor type. Defaults to std::hash<Key> if C++11 is available. Otherwise defaults to boost::hash<Key>
KeyEqualThe functor used to identify object equality. Defaults to std::equal_to<Key>

Definition at line 39 of file hopscotch_map.hpp.


The documentation for this class was generated from the following file: