Skip to content

Commit

Permalink
paged_vecvec::bucket::empty()
Browse files Browse the repository at this point in the history
  • Loading branch information
felixguendling committed May 18, 2024
1 parent a8524c7 commit bec8bca
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions include/cista/containers/paged_vecvec.h
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@ struct paged_vecvec {
operator const_bucket() const { return {pv_, i_}; }

size_type size() const { return pv_->page(i_).size_; }
bool empty() const { return size() == 0U; }

friend bool operator==(bucket const& a, bucket const& b) {
assert(a.pv_ == b.pv_);
Expand Down

0 comments on commit bec8bca

Please sign in to comment.