From 386d31ab69c38e3798200d21eb02ea62c98c4591 Mon Sep 17 00:00:00 2001 From: agate-pris Date: Fri, 18 Mar 2022 19:34:11 +0900 Subject: [PATCH] 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`. --- include/rapidjson/document.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/rapidjson/document.h b/include/rapidjson/document.h index dd29f69..74089cb 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 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.