Improved benchmark, something broke in bm_map latest cases.
This commit is contained in:
parent
6afc7cf105
commit
334f5592ea
@ -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 {
|
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;
|
typename vector<value_type>::const_iterator vit = values_.begin() + idx;
|
||||||
if (idx == -1 || vit->first != k) return end();
|
if (idx == -1 || vit->first != k) return end();
|
||||||
return make_solid(&values_, &present_, vit);;
|
return make_solid(&values_, &present_, vit);;
|
||||||
|
Loading…
Reference in New Issue
Block a user