From 6e72b68c4a0bbe9285450e82a1f465fb8a01080f Mon Sep 17 00:00:00 2001 From: Aina Niemetz Date: Tue, 8 Oct 2019 18:47:53 -0700 Subject: [PATCH] NodeValue: Use 'using' instead of 'typedef'. (#3374) --- src/expr/node_value.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/expr/node_value.h b/src/expr/node_value.h index 9e7ccb707..c86a07d6b 100644 --- a/src/expr/node_value.h +++ b/src/expr/node_value.h @@ -92,18 +92,18 @@ class NodeValue public: /* ------------------------------------------------------------------------ */ - typedef NodeValue** nv_iterator; - typedef NodeValue const* const* const_nv_iterator; + using nv_iterator = NodeValue**; + using const_nv_iterator = NodeValue const* const*; template class iterator { public: - typedef std::random_access_iterator_tag iterator_category; - typedef T value_type; - typedef std::ptrdiff_t difference_type; - typedef T* pointer; - typedef T& reference; + using iterator_category = std::random_access_iterator_tag; + using value_type = T; + using difference_type = std::ptrdiff_t; + using pointer = T*; + using reference = T&; iterator() : d_i(NULL) {} explicit iterator(const_nv_iterator i) : d_i(i) {} -- 2.30.2