diff options
Diffstat (limited to 'src/util/WritableBuffer.hxx')
-rw-r--r-- | src/util/WritableBuffer.hxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/util/WritableBuffer.hxx b/src/util/WritableBuffer.hxx index 805f3d9cd..9fd8022c8 100644 --- a/src/util/WritableBuffer.hxx +++ b/src/util/WritableBuffer.hxx @@ -76,7 +76,7 @@ struct WritableBuffer<void> { return data != nullptr; } - constexpr bool IsEmpty() const { + constexpr bool empty() const { return size == 0; } }; @@ -161,7 +161,7 @@ struct WritableBuffer { return data != nullptr; } - constexpr bool IsEmpty() const { + constexpr bool empty() const { return size == 0; } @@ -201,7 +201,7 @@ struct WritableBuffer { #endif reference_type front() const { #ifndef NDEBUG - assert(!IsEmpty()); + assert(!empty()); #endif return data[0]; } @@ -215,7 +215,7 @@ struct WritableBuffer { #endif reference_type back() const { #ifndef NDEBUG - assert(!IsEmpty()); + assert(!empty()); #endif return data[size - 1]; } @@ -225,7 +225,7 @@ struct WritableBuffer { * not actually modify the buffer). Buffer must not be empty. */ void pop_front() { - assert(!IsEmpty()); + assert(!empty()); ++data; --size; @@ -236,7 +236,7 @@ struct WritableBuffer { * not actually modify the buffer). Buffer must not be empty. */ void pop_back() { - assert(!IsEmpty()); + assert(!empty()); --size; } |