1
Fork 0

Improved benchmark, something broke in bm_map latest cases.

main
Davi Reis 2012-04-22 01:39:05 +02:00
parent 6afc7cf105
commit 334f5592ea
1 changed files with 1 additions and 1 deletions

View File

@ -198,7 +198,7 @@ MPH_MAP_METHOD_DECL(void_type, erase)(const key_type& k) {
}
MPH_MAP_INLINE_METHOD_DECL(const_iterator, find)(const key_type& k) const {
auto idx = index2(k);
auto idx = index(k);
typename vector<value_type>::const_iterator vit = values_.begin() + idx;
if (idx == -1 || vit->first != k) return end();
return make_solid(&values_, &present_, vit);;