Adding const to parameter and rehash to give map 1000 buckets
This commit is contained in:
parent
59ca59d431
commit
5b5e9296b3
@ -75,9 +75,12 @@ template< typename NodeID, typename Key >
|
||||
class UnorderedMapStorage {
|
||||
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];
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user