Adding const to parameter and rehash to give map 1000 buckets
This commit is contained in:
parent
59ca59d431
commit
5b5e9296b3
@ -75,10 +75,13 @@ template< typename NodeID, typename Key >
|
|||||||
class UnorderedMapStorage {
|
class UnorderedMapStorage {
|
||||||
public:
|
public:
|
||||||
|
|
||||||
UnorderedMapStorage( size_t ) { }
|
UnorderedMapStorage( size_t ) {
|
||||||
|
//hash table gets 1000 Buckets
|
||||||
|
nodes.rehash(1000);
|
||||||
|
}
|
||||||
|
|
||||||
Key &operator[]( NodeID node ) {
|
Key &operator[]( const NodeID node ) {
|
||||||
return nodes[node];
|
return nodes[node];
|
||||||
}
|
}
|
||||||
|
|
||||||
void Clear() {
|
void Clear() {
|
||||||
|
Loading…
Reference in New Issue
Block a user