diff options
author | Fabian Kosmale <fabian.kosmale@qt.io> | 2021-03-29 13:37:01 +0200 |
---|---|---|
committer | Fabian Kosmale <fabian.kosmale@qt.io> | 2021-03-30 10:01:50 +0200 |
commit | b786c86b912fc0b602eeeaba22edcd1ca1bb1eb5 (patch) | |
tree | d53d2c3766e79a30f40232c0aa00d3aa4a9d207c /src/corelib/tools/qlist.h | |
parent | b050d4867f68c3d35493221d65d343749504c988 (diff) |
QList: replace typedef with using
Change-Id: Ie3fa605cf05d65ca422df738dcce1fa49d6371c7
Reviewed-by: Andrei Golubev <andrei.golubev@qt.io>
Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
Diffstat (limited to 'src/corelib/tools/qlist.h')
-rw-r--r-- | src/corelib/tools/qlist.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/corelib/tools/qlist.h b/src/corelib/tools/qlist.h index b50cd9090f..841deb02a1 100644 --- a/src/corelib/tools/qlist.h +++ b/src/corelib/tools/qlist.h @@ -132,11 +132,11 @@ public: class iterator { T *i = nullptr; public: - typedef std::random_access_iterator_tag iterator_category; - typedef qsizetype difference_type; - typedef T value_type; - typedef T *pointer; - typedef T &reference; + using iterator_category = std::random_access_iterator_tag; + using difference_type = qsizetype; + using value_type = T; + using pointer = T *; + using reference = T &; inline constexpr iterator() = default; inline iterator(T *n) : i(n) {} @@ -167,11 +167,11 @@ public: class const_iterator { const T *i = nullptr; public: - typedef std::random_access_iterator_tag iterator_category; - typedef qsizetype difference_type; - typedef T value_type; - typedef const T *pointer; - typedef const T &reference; + using iterator_category = std::random_access_iterator_tag; + using difference_type = qsizetype; + using value_type = T; + using pointer = const T *; + using reference = const T &; inline constexpr const_iterator() = default; inline const_iterator(const T *n) : i(n) {} |