Robot Simulator of the Robotics Group for Self-Organization of Control  0.8.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
stl_map.h
Go to the documentation of this file.
1 #ifndef __STL_MAP_H
2 #define __STL_MAP_H
3 
4 /* this file sets the HashSet and HashMap defines to make
5  the old extension and the new tr1 for new and old gcc versions */
6 
7 #if __GNUC__ < 4
8 #include <ext/hash_set>
9 #include <ext/hash_map>
10 #define HashMap __gnu_cxx::hash_map
11 #define HashSet __gnu_cxx::hash_set
12 
13 #else
14 #include <tr1/unordered_map>
15 #include <tr1/unordered_set>
16 #define HashMap std::tr1::unordered_map
17 #define HashSet std::tr1::unordered_set
18 #endif
19 
20 
21 #endif