41 #ifndef PB_DS_STANDARD_POLICIES_HPP
42 #define PB_DS_STANDARD_POLICIES_HPP
51 #include <tr1/functional>
58 template<
typename Key>
62 typedef std::tr1::hash<Key>
type;
66 template<
typename Key>
76 default_store_hash =
false
87 template<
typename Comb_Hash_Fn>
91 typedef typename Comb_Hash_Fn::size_type size_type;
94 typedef is_same<default_fn, Comb_Hash_Fn> same_type;
97 typedef __conditional_type<same_type::value, iftrue, iffalse> cond_type;
98 typedef typename cond_type::__type size_policy_type;
116 template<
typename Comb_Probe_Fn>
120 typedef typename Comb_Probe_Fn::size_type size_type;
122 typedef is_same<default_fn, Comb_Probe_Fn> same_type;
125 typedef __conditional_type<same_type::value, iftrue, iffalse> cond_type;
129 typedef typename cond_type::__type
type;
134 template<
typename Key>
137 #define __dtrie_alloc std::allocator<char>
138 #define __dtrie_string std::basic_string<Char, Char_Traits, __dtrie_alloc>
141 template<
typename Char,
typename Char_Traits>
153 #undef __dtrie_string
158 #endif // #ifndef PB_DS_STANDARD_POLICIES_HPP
cond_type::__type type
Dispatched type.
A mask range-hashing class (uses a bitmask).
Primary template, default_hash_fn.
A resize trigger policy based on a load check. It keeps the load factor between some load factors loa...
std::tr1::hash< Key > type
Dispatched type.
GNU extensions for policy-based data structures for public use.
hash_standard_resize_policy< size_policy_type, trigger, false, size_type > type
Dispatched type.
std::equal_to< Key > type
Dispatched type.
Primary template, default_eq_fn.
One of the comparison functors.
A size policy whose sequence of sizes form an exponential sequence (typically powers of 2...
Primary template, default_resize_policy.
A resize policy which delegates operations to size and trigger policies.
direct_mask_range_hashing type
Dispatched type.
A probe sequence policy using fixed increments.
Primary template, default_trie_access_traits.
Primary template, default_probe_fn.
A probe sequence policy using square increments.
Primary template, default_comb_hash_fn.
lu_move_to_front_policy type
Dispatched type.
Managing sequences of characters and character-like objects.
trie_string_access_traits< string_type > type
Dispatched type.
A size policy whose sequence of sizes form a nearly-exponential sequence of primes.