1 //===-- Support/hash_set - "Portable" wrapper around hash_set ---*- C++ -*-===//
3 // This file provides a wrapper around the mysterious <hash_set> header file
4 // that seems to move around between GCC releases into and out of namespaces at
5 // will. #including this header will cause hash_set to be available in the
8 //===----------------------------------------------------------------------===//
10 #ifndef SUPPORT_HASHSET_H
11 #define SUPPORT_HASHSET_H
13 // Compiler Support Matrix
15 // Version Namespace Header File
17 // 3.0.4 std ext/hash_set
18 // 3.1 __gnu_cxx ext/hash_set
21 #include <ext/hash_set>
23 #ifndef HASH_NAMESPACE
24 #if __GNUC_MINOR__ == 0
25 #define HASH_NAMESPACE std
27 #define HASH_NAMESPACE __gnu_cxx
34 #ifndef HASH_NAMESPACE
35 #define HASH_NAMESPACE std
39 using HASH_NAMESPACE::hash_set;
40 using HASH_NAMESPACE::hash;