util/StringPointer: add typedef reference_type
This commit is contained in:
parent
9b85446808
commit
c75b9b0d12
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue