Skip to content

Commit

Permalink
B+Tree: implement Default trait
Browse files Browse the repository at this point in the history
  • Loading branch information
byeongkeunahn committed Sep 21, 2024
1 parent aeac8cb commit b7e0f99
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions basm-std/src/collections/bplus_tree.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,12 @@ impl<K, V, U> PeekMutRange<K, V, U> {
}
}

impl<K, V, U, F: LazyOp<V, U>> Default for BPTreeMap<K, V, U, F> {
fn default() -> Self {
Self::new()
}
}

impl<K, V, U, F> BPTreeMap<K, V, U, F>
where F: LazyOp<V, U> {
pub fn new() -> Self {
Expand Down

0 comments on commit b7e0f99

Please sign in to comment.