diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2014-08-06 11:57:31 -0300 |
---|---|---|
committer | Thiago Macieira <thiago.macieira@intel.com> | 2014-08-08 00:05:03 +0200 |
commit | 6a237a4e766979ff191818cbdab2c5aa1a6f490b (patch) | |
tree | ff104c259fba37f1eb2f7d176ad0f5ed3c201f05 /src/corelib/tools/qbytearray.h | |
parent | 04ba6fbed900403ef8892820fa93925a8e21f7b1 (diff) |
Add some missing STL typedefs and functions to QStringRef and QByteArray
These will be needed in some template code that is to come.
Change-Id: I5b93f4320313f7b15a6404de2c98f85485735fda
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@digia.com>
Diffstat (limited to 'src/corelib/tools/qbytearray.h')
-rw-r--r-- | src/corelib/tools/qbytearray.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/corelib/tools/qbytearray.h b/src/corelib/tools/qbytearray.h index b5af305233..ba7fdbb10a 100644 --- a/src/corelib/tools/qbytearray.h +++ b/src/corelib/tools/qbytearray.h @@ -389,8 +389,12 @@ public: const_iterator constEnd() const; // stl compatibility + typedef int size_type; + typedef qptrdiff difference_type; typedef const char & const_reference; typedef char & reference; + typedef char *pointer; + typedef const char *const_pointer; typedef char value_type; void push_back(char c); void push_back(const char *c); |