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

@@ -39,17 +39,17 @@ public:
typedef T value_type;
typedef T &reference_type;
typedef const T &const_reference_type;
typedef T *pointer_type;
typedef const T *const_pointer_type;
typedef T *pointer;
typedef const T *const_pointer;
static constexpr value_type SENTINEL = '\0';
private:
const_pointer_type value;
const_pointer value;
public:
StringPointer() = default;
constexpr StringPointer(const_pointer_type _value)
constexpr StringPointer(const_pointer _value)
:value(_value) {}
/**
@@ -60,7 +60,7 @@ public:
return value == nullptr;
}
constexpr const_pointer_type c_str() const {
constexpr const_pointer c_str() const {
return value;
}