File tree 1 file changed +4
-5
lines changed 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -217,23 +217,22 @@ class SmallSet {
217
217
" ArgType must be convertible to T!" );
218
218
if (!isSmall ()) {
219
219
auto [I, Inserted] = Set.insert (std::forward<ArgType>(V));
220
- return std::make_pair ( const_iterator (I), Inserted) ;
220
+ return { const_iterator (I), Inserted} ;
221
221
}
222
222
223
223
auto I = std::find (Vector.begin (), Vector.end (), V);
224
224
if (I != Vector.end ()) // Don't reinsert if it already exists.
225
- return std::make_pair ( const_iterator (I), false ) ;
225
+ return { const_iterator (I), false } ;
226
226
if (Vector.size () < N) {
227
227
Vector.push_back (std::forward<ArgType>(V));
228
- return std::make_pair ( const_iterator (std::prev (Vector.end ())), true ) ;
228
+ return { const_iterator (std::prev (Vector.end ())), true } ;
229
229
}
230
230
231
231
// Otherwise, grow from vector to set.
232
232
Set.insert (std::make_move_iterator (Vector.begin ()),
233
233
std::make_move_iterator (Vector.end ()));
234
234
Vector.clear ();
235
- return std::make_pair (
236
- const_iterator (Set.insert (std::forward<ArgType>(V)).first ), true );
235
+ return {const_iterator (Set.insert (std::forward<ArgType>(V)).first ), true };
237
236
}
238
237
};
239
238
You can’t perform that action at this time.
0 commit comments