Skip to content

Commit

Permalink
Inline the RoaringBitmap max method
Browse files Browse the repository at this point in the history
  • Loading branch information
Kerollmops committed Sep 23, 2024
1 parent d8f1829 commit a361213
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions roaring/src/bitmap/inherent.rs
Original file line number Diff line number Diff line change
Expand Up @@ -513,6 +513,7 @@ impl RoaringBitmap {
/// rb.insert(4);
/// assert_eq!(rb.max(), Some(4));
/// ```
#[inline]
pub fn max(&self) -> Option<u32> {
self.containers.last().and_then(|tail| tail.max().map(|max| util::join(tail.key, max)))
}
Expand Down

0 comments on commit a361213

Please sign in to comment.