Files
rust/library
Tatsuyuki Ishi 116bb4dfb2 binary_heap: Unify Extend implementation.
Previously the bulk rebuild specialization was only available with Vec, and
for general iterators Extend only provided pre-allocation through reserve().

By using a drop guard, we can safely bulk rebuild even if the iterator may
panic. This allows benefiting from the bulk rebuild optimization without
collecting iterator elements into a Vec beforehand, which would nullify any
performance gains from bulk rebuild.
2023-02-25 17:05:09 +09:00
..
2022-09-02 16:09:58 -04:00
2023-01-21 22:06:42 -05:00
2022-06-03 17:16:41 -04:00
2022-12-29 11:22:13 +01:00