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