Constructor ! \param allocator Optional allocator for allocating memory. \param stackCapacity Optional initial capacity of stack in bytes. \param stackAllocator Optional allocator for allocating memory for stack. */
| 1636 | \param stackAllocator Optional allocator for allocating memory for stack. |
| 1637 | */ |
| 1638 | GenericDocument(Allocator* allocator = 0, size_t stackCapacity = kDefaultStackCapacity, StackAllocator* stackAllocator = 0) : |
| 1639 | allocator_(allocator), ownAllocator_(0), stack_(stackAllocator, stackCapacity), parseResult_() |
| 1640 | { |
| 1641 | if (!allocator_) |
| 1642 | ownAllocator_ = allocator_ = RAPIDJSON_NEW(Allocator()); |
| 1643 | } |
| 1644 | |
| 1645 | #if RAPIDJSON_HAS_CXX11_RVALUE_REFS |
| 1646 | //! Move constructor in C++11 |
nothing calls this directly
no test coverage detected