Associative-Container Examples
-
basic_map.cc
Basic use of "maps".
- basic_set.cc
Basic use of "sets".
- erase_if.cc
Conditionally erasing values from a container object.
- assoc_container_traits.cc
Using container_traits to query
about underlying data structure behavior.
- hash_find_neg.cc
A non-compiling example showing wrong use of finding keys in
hash-based containers.
- hash_initial_size.cc
Setting the initial size of a hash-based container
object.
- hash_resize_neg.cc
A non-compiling example showing how not to resize a
hash-based container object.
- hash_resize.cc
Resizing the size of a hash-based container object.
- hash_illegal_resize.cc
Showing an illegal resize of a hash-based container
object.
- hash_load_set_change.cc
Changing the load factors of a hash-based container
object.
- hash_mod.cc
Using a modulo range-hashing function for the case of an
unknown skewed key distribution.
- shift_mask.cc
Writing a range-hashing functor for the case of a known
skewed key distribution.
- store_hash.cc
Storing the hash value along with each key.
- ranged_hash.cc
Writing a ranged-hash functor.
- tree_order_statistics.cc
Using trees for order statistics.
- tree_intervals.cc
Augmenting trees to support operations on line
intervals.
- tree_join.cc
Joining two tree-based container objects.
- trie_split.cc
Splitting a PATRICIA trie container object.
- tree_order_statistics_join.cc
Order statistics while joining two tree-based container
objects.
- trie_dna.cc
Using a PATRICIA trie for DNA strings.
- trie_prefix_search.cc
Using a PATRICIA trie for finding all entries whose key
matches a given prefix.
- basic_multimap.cc
Basic use of "multimaps".
- basic_multiset.cc
Basic use of "multisets".