parent
093b9d5b29
commit
bbc230478c
@ -669,7 +669,7 @@ pub fn clear(&mut self) {
|
|||||||
/// map.insert(1, "a");
|
/// map.insert(1, "a");
|
||||||
/// ```
|
/// ```
|
||||||
#[unstable(feature = "btreemap_alloc", issue = "32838")]
|
#[unstable(feature = "btreemap_alloc", issue = "32838")]
|
||||||
pub fn new_in(alloc: A) -> BTreeMap<K, V, A> {
|
pub const fn new_in(alloc: A) -> BTreeMap<K, V, A> {
|
||||||
BTreeMap { root: None, length: 0, alloc: ManuallyDrop::new(alloc), _marker: PhantomData }
|
BTreeMap { root: None, length: 0, alloc: ManuallyDrop::new(alloc), _marker: PhantomData }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user