util/StringPointer: rename typedef pointer to pointer_type

This commit is contained in:
Max Kellermann
2016-04-12 22:49:03 +02:00
parent fd5d42836f
commit 9b85446808
17 changed files with 116 additions and 111 deletions

View File

@@ -37,17 +37,17 @@ template<typename T=char>
class StringPointer {
public:
typedef T value_type;
typedef T *pointer;
typedef const T *const_pointer;
typedef T *pointer_type;
typedef const T *const_pointer_type;
static constexpr value_type SENTINEL = '\0';
private:
const_pointer value;
const_pointer_type value;
public:
StringPointer() = default;
constexpr StringPointer(const_pointer _value)
constexpr StringPointer(const_pointer_type _value)
:value(_value) {}
/**
@@ -58,7 +58,7 @@ public:
return value == nullptr;
}
constexpr const_pointer c_str() const {
constexpr const_pointer_type c_str() const {
return value;
}