Commit b282682b authored by Max Kellermann's avatar Max Kellermann Committed by Max Kellermann

use `using` instead of `typedef`

parent ad00926e
......@@ -46,7 +46,7 @@ template<typename T>
class BasicIterableSplitString {
typedef BasicStringView<T> 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};
......
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