diff options
Diffstat (limited to 'mkcls-v2/mystl.h')
-rw-r--r-- | mkcls-v2/mystl.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/mkcls-v2/mystl.h b/mkcls-v2/mystl.h index 0eb311f..2d8f9ca 100644 --- a/mkcls-v2/mystl.h +++ b/mkcls-v2/mystl.h @@ -27,13 +27,19 @@ USA. #define MY_STL_H_DEFINED #include <string> #include <utility> +#if __cplusplus < 201103L && !defined(_LIBCPP_VERSION) #include <tr1/unordered_map> +#else +#include <unordered_map> +#endif #include <cmath> using namespace std; namespace std { +#if __cplusplus < 201103L && !defined(_LIBCPP_VERSION) namespace tr1 { +#endif template <typename T, typename V> struct hash<pair<T, V> > { static inline void hash_combine(std::size_t & seed, const T & v) { @@ -48,7 +54,9 @@ namespace std { return h; } }; +#if __cplusplus < 201103L && !defined(_LIBCPP_VERSION) } +#endif } #define over_string(a,i) for(unsigned int i=0;i<a.length();i++) |