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

#include <core/generics/hopscotch_set.hpp>

Detailed Description

template<typename Key, typename Hash = _HOPSCOTCH_SET_DEFAULT_HASH, typename KeyEqual = std::equal_to<Key>>
class turi::hopscotch_set< Key, Hash, KeyEqual >

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

Template Parameters
KeyThe key of the set
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 37 of file hopscotch_set.hpp.


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