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`.
This commit is contained in:
agate-pris 2022-03-18 19:34:11 +09:00
parent 79d7a448e9
commit 386d31ab69

View File

@ -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.