use `using` instead of `typedef`
This commit is contained in:
parent
ad00926e1b
commit
b282682ba5
|
@ -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};
|
||||
|
|
Loading…
Reference in New Issue