From 7d7bd51bc0a4748593e774decc91a1dbc939fd90 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 25 Mar 2020 19:23:51 +0100 Subject: [PATCH] util/AllocatedArray: use `using` instead of `typedef` --- src/util/AllocatedArray.hxx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/util/AllocatedArray.hxx b/src/util/AllocatedArray.hxx index 7444113ea..8e0273ca8 100644 --- a/src/util/AllocatedArray.hxx +++ b/src/util/AllocatedArray.hxx @@ -45,11 +45,11 @@ class AllocatedArray { typedef WritableBuffer Buffer; public: - typedef typename Buffer::size_type size_type; - typedef typename Buffer::reference reference; - typedef typename Buffer::const_reference const_reference; - typedef typename Buffer::iterator iterator; - typedef typename Buffer::const_iterator const_iterator; + using size_type = typename Buffer::size_type; + using reference = typename Buffer::reference; + using const_reference = typename Buffer::const_reference; + using iterator = typename Buffer::iterator; + using const_iterator = typename Buffer::const_iterator; protected: Buffer buffer{nullptr};