| 2421 | GenericDocument& operator=(const GenericDocument&); |
| 2422 | |
| 2423 | void ClearStack() { |
| 2424 | if (Allocator::kNeedFree) |
| 2425 | while (stack_.GetSize() > 0) // Here assumes all elements in stack array are GenericValue (Member is actually 2 GenericValue objects) |
| 2426 | (stack_.template Pop<ValueType>(1))->~ValueType(); |
| 2427 | else |
| 2428 | stack_.Clear(); |
| 2429 | stack_.ShrinkToFit(); |
| 2430 | } |
| 2431 | |
| 2432 | void Destroy() { |
| 2433 | RAPIDJSON_DELETE(ownAllocator_); |
no test coverage detected