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>
GNU extensions for policy-based data structures for public use.
Managing sequences of characters and character-like objects.
One of the comparison functors.
A probe sequence policy using fixed increments.
A probe sequence policy using square increments.
A mask range-hashing class (uses a bitmask).
A resize trigger policy based on a load check. It keeps the load factor between some load factors loa...
A size policy whose sequence of sizes form an exponential sequence (typically powers of 2.
A size policy whose sequence of sizes form a nearly-exponential sequence of primes.
A resize policy which delegates operations to size and trigger policies.
Primary template, default_hash_fn.
std::tr1::hash< Key > type
Dispatched type.
Primary template, default_eq_fn.
std::equal_to< Key > type
Dispatched type.
Primary template, default_comb_hash_fn.
direct_mask_range_hashing type
Dispatched type.
Primary template, default_resize_policy.
hash_standard_resize_policy< size_policy_type, trigger, false, size_type > type
Dispatched type.
lu_move_to_front_policy type
Dispatched type.
Primary template, default_probe_fn.
cond_type::__type type
Dispatched type.
Primary template, default_trie_access_traits.
trie_string_access_traits< string_type > type
Dispatched type.