@@ -176,21 +176,21 @@ class JSON_API Value {
176176 friend class ValueIteratorBase ;
177177
178178public:
179- typedef std::vector<String> Members ;
180- typedef ValueIterator iterator;
181- typedef ValueConstIterator const_iterator;
182- typedef Json::UInt UInt;
183- typedef Json::Int Int;
179+ using Members = std::vector<String>;
180+ using iterator = ValueIterator ;
181+ using const_iterator = ValueConstIterator ;
182+ using UInt = Json::UInt;
183+ using Int = Json::Int;
184184#if defined(JSON_HAS_INT64)
185- typedef Json::UInt64 UInt64;
186- typedef Json::Int64 Int64;
185+ using UInt64 = Json::UInt64;
186+ using Int64 = Json::Int64;
187187#endif // defined(JSON_HAS_INT64)
188- typedef Json::LargestInt LargestInt;
189- typedef Json::LargestUInt LargestUInt;
190- typedef Json::ArrayIndex ArrayIndex;
188+ using LargestInt = Json::LargestInt;
189+ using LargestUInt = Json::LargestUInt;
190+ using ArrayIndex = Json::ArrayIndex;
191191
192192 // Required for boost integration, e. g. BOOST_TEST
193- typedef std::string value_type ;
193+ using value_type = std::string;
194194
195195#if JSON_USE_NULLREF
196196 // Binary compatibility kludges, do not use.
@@ -710,8 +710,8 @@ class JSON_API Path {
710710 Value& make (Value& root) const ;
711711
712712private:
713- typedef std::vector<const PathArgument*> InArgs ;
714- typedef std::vector<PathArgument> Args ;
713+ using InArgs = std::vector<const PathArgument*>;
714+ using Args = std::vector<PathArgument>;
715715
716716 void makePath (const String& path, const InArgs& in);
717717 void addPathInArg (const String& path, const InArgs& in,
@@ -726,10 +726,10 @@ class JSON_API Path {
726726 */
727727class JSON_API ValueIteratorBase {
728728public:
729- typedef std::bidirectional_iterator_tag iterator_category ;
730- typedef unsigned int size_t ;
731- typedef int difference_type;
732- typedef ValueIteratorBase SelfType;
729+ using iterator_category = std::bidirectional_iterator_tag;
730+ using size_t = unsigned int ;
731+ using difference_type = int ;
732+ using SelfType = ValueIteratorBase ;
733733
734734 bool operator ==(const SelfType& other) const { return isEqual (other); }
735735
@@ -802,12 +802,12 @@ class JSON_API ValueConstIterator : public ValueIteratorBase {
802802 friend class Value ;
803803
804804public:
805- typedef const Value value_type ;
805+ using value_type = const Value;
806806 // typedef unsigned int size_t;
807807 // typedef int difference_type;
808- typedef const Value& reference ;
809- typedef const Value* pointer ;
810- typedef ValueConstIterator SelfType;
808+ using reference = const Value&;
809+ using pointer = const Value*;
810+ using SelfType = ValueConstIterator ;
811811
812812 ValueConstIterator ();
813813 ValueConstIterator (ValueIterator const & other);
@@ -853,12 +853,12 @@ class JSON_API ValueIterator : public ValueIteratorBase {
853853 friend class Value ;
854854
855855public:
856- typedef Value value_type;
857- typedef unsigned int size_t ;
858- typedef int difference_type;
859- typedef Value& reference ;
860- typedef Value* pointer ;
861- typedef ValueIterator SelfType;
856+ using value_type = Value ;
857+ using size_t = unsigned int ;
858+ using difference_type = int ;
859+ using reference = Value&;
860+ using pointer = Value*;
861+ using SelfType = ValueIterator ;
862862
863863 ValueIterator ();
864864 explicit ValueIterator (const ValueConstIterator& other);
0 commit comments