1 //===-- HashExtras.h - Useful functions for STL hash containers --*- C++ -*--=//
3 // This file contains some templates that are useful if you are working with the
4 // STL Hashed containers.
6 // No library is required when using these functinons.
8 //===----------------------------------------------------------------------===//
10 #ifndef LLVM_SUPPORT_HASHEXTRAS_H
11 #define LLVM_SUPPORT_HASHEXTRAS_H
16 template <> struct hash<string> {
17 size_t operator()(string const &str) const {
18 return hash<char const *>()(str.c_str());