Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/miloyip/rapidjson.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoragate-pris <agate-pris@users.noreply.github.com>2022-03-18 13:34:11 +0300
committeragate-pris <agate-pris@users.noreply.github.com>2022-03-18 13:34:11 +0300
commit386d31ab69c38e3798200d21eb02ea62c98c4591 (patch)
treebbf7aec72867fde1c166c9c92968bb38b151e04d
parent79d7a448e93b449815ab8db7822d7828e48e83f1 (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.h1
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.