util/{Const,Writable}Buffer, ...: rename IsEmpty() to empty(), imitating STL

This commit is contained in:
Max Kellermann
2017-11-10 19:24:33 +01:00
parent 523051132d
commit 49784513b1
51 changed files with 142 additions and 142 deletions

View File

@@ -134,7 +134,7 @@ public:
head = tail = 0;
}
constexpr bool IsEmpty() const {
constexpr bool empty() const {
return head == tail;
}
@@ -147,7 +147,7 @@ public:
* When you are finished, call Append().
*/
Range Write() {
if (IsEmpty())
if (empty())
Clear();
else if (tail == capacity)
Shift();