File tree Expand file tree Collapse file tree 1 file changed +2
-14
lines changed Expand file tree Collapse file tree 1 file changed +2
-14
lines changed Original file line number Diff line number Diff line change @@ -174,20 +174,8 @@ class DenseMapBase : public DebugEpochBase {
174174 return contains (Val) ? 1 : 0 ;
175175 }
176176
177- iterator find (const_arg_type_t <KeyT> Val) {
178- if (BucketT *Bucket = doFind (Val))
179- return makeIterator (
180- Bucket, shouldReverseIterate<KeyT>() ? getBuckets () : getBucketsEnd (),
181- *this , true );
182- return end ();
183- }
184- const_iterator find (const_arg_type_t <KeyT> Val) const {
185- if (const BucketT *Bucket = doFind (Val))
186- return makeConstIterator (
187- Bucket, shouldReverseIterate<KeyT>() ? getBuckets () : getBucketsEnd (),
188- *this , true );
189- return end ();
190- }
177+ iterator find (const_arg_type_t <KeyT> Val) { return find_as (Val); }
178+ const_iterator find (const_arg_type_t <KeyT> Val) const { return find_as (Val); }
191179
192180 // / Alternate version of find() which allows a different, and possibly
193181 // / less expensive, key type.
You can’t perform that action at this time.
0 commit comments