Why is array::size not returning the correct value? Am I initializing it incorrectly?
Code: Select all
std::cout << "Creating 1000 unit hash map" << std::endl;
hashVector.reallocate(1000);
std::cout << "Size of hashvector: " << hashVector.size() << std::endl;
?!?? Any idea why this is not working as it should? Isn't reallocate the correct function to use?Creating 1000 unit hash map
Size of hashvector: 0