Commit 7d7bd51b authored by Max Kellermann's avatar Max Kellermann

util/AllocatedArray: use `using` instead of `typedef`

parent 71e551df
...@@ -45,11 +45,11 @@ class AllocatedArray { ...@@ -45,11 +45,11 @@ class AllocatedArray {
typedef WritableBuffer<T> Buffer; typedef WritableBuffer<T> Buffer;
public: public:
typedef typename Buffer::size_type size_type; using size_type = typename Buffer::size_type;
typedef typename Buffer::reference reference; using reference = typename Buffer::reference;
typedef typename Buffer::const_reference const_reference; using const_reference = typename Buffer::const_reference;
typedef typename Buffer::iterator iterator; using iterator = typename Buffer::iterator;
typedef typename Buffer::const_iterator const_iterator; using const_iterator = typename Buffer::const_iterator;
protected: protected:
Buffer buffer{nullptr}; Buffer buffer{nullptr};
......
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