@@ -249,7 +249,7 @@ class sharing_mapt
249
249
// /
250
250
// / Complexity:
251
251
// / - Worst case: O(H * S + M)
252
- // / - Best case: O(H )
252
+ // / - Best case: O(1 )
253
253
// /
254
254
// / \param k: The key of the element to erase
255
255
void erase (const key_type &k);
@@ -258,7 +258,7 @@ class sharing_mapt
258
258
// /
259
259
// / Complexity:
260
260
// / - Worst case: O(H * S + M)
261
- // / - Best case: O(H )
261
+ // / - Best case: O(1 )
262
262
// /
263
263
// / \param k: The key of the element to erase
264
264
void erase_if_exists (const key_type &k)
@@ -271,7 +271,7 @@ class sharing_mapt
271
271
// /
272
272
// / Complexity:
273
273
// / - Worst case: O(H * S + M)
274
- // / - Best case: O(H )
274
+ // / - Best case: O(1 )
275
275
// /
276
276
// / \param k: The key of the element to insert
277
277
// / \param m: The mapped value to insert
@@ -282,7 +282,7 @@ class sharing_mapt
282
282
// /
283
283
// / Complexity:
284
284
// / - Worst case: O(H * S + M)
285
- // / - Best case: O(H )
285
+ // / - Best case: O(1 )
286
286
// /
287
287
// / \param k: The key of the element to insert
288
288
// / \param m: The mapped value to replace the old value with
@@ -306,7 +306,7 @@ class sharing_mapt
306
306
// /
307
307
// / Complexity:
308
308
// / - Worst case: O(H * log(S) + M)
309
- // / - Best case: O(H )
309
+ // / - Best case: O(1 )
310
310
// /
311
311
// / \param k: The key of the element to search
312
312
// / \return optionalt containing a const reference to the value if found
@@ -350,7 +350,7 @@ class sharing_mapt
350
350
// /
351
351
// / Complexity:
352
352
// / - Worst case: O(H * log(S) + M)
353
- // / - Best case: O(H )
353
+ // / - Best case: O(1 )
354
354
bool has_key (const key_type &k) const
355
355
{
356
356
return get_leaf_node (k)!=nullptr ;
0 commit comments