Line | |
---|
1 | // ========================================================= // |
---|
2 | // // |
---|
3 | // File : arb_unordered_set.h // |
---|
4 | // Purpose : compatibility wrapper for unordered_set // |
---|
5 | // // |
---|
6 | // Coded by Ralf Westram (coder@reallysoft.de) in Sep 21 // |
---|
7 | // http://www.arb-home.de/ // |
---|
8 | // // |
---|
9 | // ========================================================= // |
---|
10 | |
---|
11 | #ifndef ARB_UNORDERED_SET_H |
---|
12 | #define ARB_UNORDERED_SET_H |
---|
13 | |
---|
14 | // this header can be eliminated when arb EXPECTS Cxx11 |
---|
15 | |
---|
16 | #ifdef DARWIN |
---|
17 | // fallback to std:map on DARWIN |
---|
18 | // workaround compilation problems on Maverick (osx) |
---|
19 | # include <set> |
---|
20 | # define arb_unordered_set std::set |
---|
21 | #else |
---|
22 | # ifdef Cxx11 |
---|
23 | # include <unordered_set> |
---|
24 | # define arb_unordered_set std::unordered_set |
---|
25 | # else |
---|
26 | # include <tr1/unordered_set> |
---|
27 | # define arb_unordered_set std::tr1::unordered_set |
---|
28 | # endif |
---|
29 | #endif |
---|
30 | |
---|
31 | #else |
---|
32 | #error arb_unordered_set.h included twice |
---|
33 | #endif // ARB_UNORDERED_SET_H |
---|
Note: See
TracBrowser
for help on using the repository browser.