Closed
Description
Feature gate: #![feature(const_binary_heap_new_in)]
This is a tracking issue for constification of BinaryHeap::new_in
, which allows user to create a BinaryHeap
in compile-time with a specific allocator.
NOTE: This feature depends on the unstable feature allocator_api
Public API
impl<T: Ord, A: Allocator> BinaryHeap<T, A> {
pub const fn new_in(alloc: A) -> BinaryHeap<T, A> {}
}
Steps / History
- Implementation: Mark constructor of
BinaryHeap
as const fn #117316 - Final comment period (FCP)
- Stabilization PR
Unresolved Questions
- None yet.