C/C++
stlhash.txt
Associated article: C++ STL Hash Containers and Performance
Tags: C/C++
Published source code accompanying the article by Thomas Johnson in which he shows how STL's hash containers can be a powerful tool to add to your performance toolbox. Also see STLHASH.ZIP.
C++ STL Hash Containers and Performance
by Thomas Johnson
Listing One
struct terribleHasher {
size_t operator()(const myClass& myObj) const {
return 1;
}
};
Listing Two
template< typename T_TypeToHash >
struct SizeTCastHasher {
size_t operator()( const T_TypeToHash& i_...


