diff options
author | agate-pris <agate-pris@users.noreply.github.com> | 2022-03-18 13:34:11 +0300 |
---|---|---|
committer | agate-pris <agate-pris@users.noreply.github.com> | 2022-03-18 13:34:11 +0300 |
commit | 386d31ab69c38e3798200d21eb02ea62c98c4591 (patch) | |
tree | bbf7aec72867fde1c166c9c92968bb38b151e04d | |
parent | 79d7a448e93b449815ab8db7822d7828e48e83f1 (diff) |
Allow access to the template parameter StackAllocator in the GenericDocument
Add the typedef declaration `StackAllocatorType` to the class template
`GenericDocument`. This allows the user to access the template parameter
`StackAllocator`.
-rw-r--r-- | include/rapidjson/document.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/rapidjson/document.h b/include/rapidjson/document.h index dd29f699..74089cb9 100644 --- a/include/rapidjson/document.h +++ b/include/rapidjson/document.h @@ -2486,6 +2486,7 @@ public: typedef typename Encoding::Ch Ch; //!< Character type derived from Encoding. typedef GenericValue<Encoding, Allocator> ValueType; //!< Value type of the document. typedef Allocator AllocatorType; //!< Allocator type from template parameter. + typedef StackAllocator StackAllocatorType; //!< StackAllocator type from template parameter. //! Constructor /*! Creates an empty document of specified type. |