Commit c75b9b0d authored by Max Kellermann's avatar Max Kellermann

util/StringPointer: add typedef reference_type

parent 9b854468
......@@ -44,6 +44,8 @@ template<typename T=char>
class AllocatedString {
public:
typedef typename StringPointer<T>::value_type value_type;
typedef typename StringPointer<T>::reference_type reference_type;
typedef typename StringPointer<T>::const_reference_type const_reference_type;
typedef typename StringPointer<T>::pointer_type pointer_type;
typedef typename StringPointer<T>::const_pointer_type const_pointer_type;
......
......@@ -37,6 +37,8 @@ template<typename T=char>
class StringPointer {
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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment