util/{Const,Writable}Buffer: drop "_type" from type names

Behave like STL.
This commit is contained in:
Max Kellermann
2020-01-03 15:49:29 +01:00
parent 53f8053188
commit 4937d77cb6
26 changed files with 176 additions and 180 deletions

View File

@@ -53,8 +53,8 @@ class ForeignFifoBuffer {
public:
using size_type = std::size_t;
using Range = WritableBuffer<T>;
using pointer_type = typename Range::pointer_type;
using const_pointer_type = typename Range::const_pointer_type;
using pointer = typename Range::pointer;
using const_pointer = typename Range::const_pointer;
protected:
size_type head = 0, tail = 0, capacity;
@@ -211,7 +211,7 @@ public:
head += n;
}
size_type Read(pointer_type p, size_type n) noexcept {
size_type Read(pointer p, size_type n) noexcept {
auto range = Read();
if (n > range.size)
n = range.size;