diff options
-rw-r--r-- | common/almalloc.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/almalloc.h b/common/almalloc.h index d649716c..23f9edce 100644 --- a/common/almalloc.h +++ b/common/almalloc.h @@ -185,13 +185,13 @@ struct FlexArray { FlexArray(index_type size) : mSize{size} { uninitialized_default_construct_n(mArray, mSize); } - ~FlexArray() - { destroy_n(mArray, mSize); } + ~FlexArray() { destroy_n(mArray, mSize); } FlexArray(const FlexArray&) = delete; FlexArray& operator=(const FlexArray&) = delete; index_type size() const noexcept { return mSize; } + bool empty() const noexcept { return mSize == 0; } pointer data() noexcept { return mArray; } const_pointer data() const noexcept { return mArray; } |