util/{Const,Writable}Buffer: drop "_type" from type names
Behave like STL.
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user