NodeValue: Use 'using' instead of 'typedef'. (#3374)
authorAina Niemetz <aina.niemetz@gmail.com>
Wed, 9 Oct 2019 01:47:53 +0000 (18:47 -0700)
committerAina Niemetz <aina.niemetz@gmail.com>
Wed, 9 Oct 2019 19:19:07 +0000 (12:19 -0700)
src/expr/node_value.h

index 9e7ccb70764318487126034043c497f94fe45129..c86a07d6b6aae30f1e2b10b3fa5bdcd182e161a3 100644 (file)
@@ -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 T>
   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) {}