From b282682ba5e52f1b996184aceef03e6a5d68873a Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 16 Mar 2020 21:01:46 +0100 Subject: [PATCH] use `using` instead of `typedef` --- src/util/IterableSplitString.hxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/util/IterableSplitString.hxx b/src/util/IterableSplitString.hxx index f6d8ff0b4..f50feb4ba 100644 --- a/src/util/IterableSplitString.hxx +++ b/src/util/IterableSplitString.hxx @@ -46,7 +46,7 @@ template class BasicIterableSplitString { typedef BasicStringView StringView; - typedef typename StringView::value_type value_type; + using value_type = typename StringView::value_type; StringView s; value_type separator; @@ -89,7 +89,7 @@ public: } public: - typedef std::forward_iterator_tag iterator_category; + using iterator_category = std::forward_iterator_tag; Iterator &operator++() { Next(); @@ -113,8 +113,8 @@ public: } }; - typedef Iterator iterator; - typedef Iterator const_iterator; + using iterator = Iterator; + using const_iterator = Iterator; const_iterator begin() const { return {s, separator};