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