Skip to content

Commit da37907

Browse files
committed
min_max
1 parent e6b657b commit da37907

3 files changed

Lines changed: 140 additions & 219 deletions

File tree

include/phtree/common/bpt_fixed_vector.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,11 @@ class bpt_vector {
246246
return iterator{dst};
247247
}
248248

249+
void pop_back() noexcept {
250+
assert(size_ > 0);
251+
std::destroy_at(&data(--size_));
252+
}
253+
249254
[[nodiscard]] size_t size() const noexcept {
250255
return size_;
251256
}

0 commit comments

Comments
 (0)