Rollup merge of #23617 - steveklabnik:gh23564, r=Manishearth
Fixes #23564
This commit is contained in:
commit
b6783e6b46
1 changed files with 2 additions and 0 deletions
|
@ -563,6 +563,8 @@ impl<T: Ord> BinaryHeap<T> {
|
|||
pub fn is_empty(&self) -> bool { self.len() == 0 }
|
||||
|
||||
/// Clears the binary heap, returning an iterator over the removed elements.
|
||||
///
|
||||
/// The elements are removed in arbitrary order.
|
||||
#[inline]
|
||||
#[unstable(feature = "collections",
|
||||
reason = "matches collection reform specification, waiting for dust to settle")]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue