Robot Simulator of the Robotics Group for Self-Organization of Control: stl_map.h Source File

# stl_map.h

Go to the documentation of this file.

    00001 #ifndef __STL_MAP_H
    00002 #define __STL_MAP_H
    00003
    00004 /* this file sets the HashSet and HashMap defines to make
    00005  the old extension and the new tr1 for new and old gcc versions */
    00006
    00007 #if __GNUC__ < 4
    00008 #include <ext/hash_set>
    00009 #include <ext/hash_map>
    00010 #define HashMap __gnu_cxx::hash_map
    00011 #define HashSet __gnu_cxx::hash_set
    00012
    00013 #else
    00014 #include <tr1/unordered_map>
    00015 #include <tr1/unordered_set>
    00016 #define HashMap std::tr1::unordered_map
    00017 #define HashSet std::tr1::unordered_set
    00018 #endif
    00019
    00020
    00021 #endif