ruby: get rid of the Map class
This commit is contained in:
@@ -33,8 +33,10 @@
|
||||
|
||||
#if defined(__GNUC__) && __GNUC__ >= 3
|
||||
#include <ext/hash_map>
|
||||
#include <ext/hash_set>
|
||||
#else
|
||||
#include <hash_map>
|
||||
#include <hash_set>
|
||||
#endif
|
||||
|
||||
#include <string>
|
||||
@@ -49,7 +51,9 @@
|
||||
|
||||
namespace m5 {
|
||||
using ::__hash_namespace::hash_multimap;
|
||||
using ::__hash_namespace::hash_multiset;
|
||||
using ::__hash_namespace::hash_map;
|
||||
using ::__hash_namespace::hash_set;
|
||||
using ::__hash_namespace::hash;
|
||||
}
|
||||
|
||||
@@ -88,10 +92,6 @@ namespace __hash_namespace {
|
||||
return (__stl_hash_string(r.first.c_str())) ^ r.second;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
/* namespace __hash_namespace */ }
|
||||
|
||||
#endif // __HASHMAP_HH__
|
||||
|
||||
@@ -60,12 +60,13 @@ class ContainerPrint
|
||||
void
|
||||
operator()(const T &elem)
|
||||
{
|
||||
out << elem;
|
||||
// First one doesn't get a space before it. The rest do.
|
||||
if (first)
|
||||
first = false;
|
||||
else
|
||||
out << " ";
|
||||
|
||||
out << elem;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user