[gardening][Basic] Replace typedef with using

This commit is contained in:
Sho Ikeda
2018-03-27 13:59:49 +09:00
parent 99ccfb1c41
commit 9c3e4848bf
9 changed files with 67 additions and 68 deletions

View File

@@ -56,11 +56,11 @@ public:
FuncTy Func;
iterator(const Orig *ptr, FuncTy func) : Ptr(ptr), Func(func) {}
public:
typedef Projected value_type;
typedef Projected reference;
typedef void pointer;
typedef ptrdiff_t difference_type;
typedef std::random_access_iterator_tag iterator_category;
using value_type = Projected;
using reference = Projected;
using pointer = void;
using difference_type = ptrdiff_t;
using iterator_category = std::random_access_iterator_tag;
Projected operator*() const { return Func(*Ptr); }
iterator &operator++() { Ptr++; return *this; }