Closed
Description
Feature gate: #![feature(const_collections_with_hasher)]
This is a tracking issue for making HashMap::with_hasher
and HashSet::with_hasher
const
.
Public API
// std::collections
impl<K, V, S> HashMap<K, V, S> {
pub const fn with_hasher(hash_builder: S) -> HashMap<K, V, S> { ... }
}
impl<T, S> HashSet<T, S> {
pub const fn with_hasher(hasher: S) -> HashSet<T, S> { ... }
}
Steps / History
- Implementation: Make Hash{Set,Map}::with_hasher unstably const #102574
- Final comment period (FCP)1
- Stabilization PR ( const-stabilize HashMap/HashSet::with_hasher (+ required compiller changes) #118427)
Unresolved Questions
- None yet.