Implement Default for BinaryHeap

This commit is contained in:
Felix Stegmaier 2019-02-10 13:29:13 +01:00
parent ad3ef1282d
commit bc3616d0cb

View File

@ -412,6 +412,17 @@ impl<'a, T> Drop for Hole<'a, T> {
}
}
impl<T, N, K> Default for BinaryHeap<T, N, K>
where
T: Ord,
N: ArrayLength<T>,
K: Kind,
{
fn default() -> Self {
Self::new()
}
}
impl<T, N, K> Clone for BinaryHeap<T, N, K>
where
N: ArrayLength<T>,