Optimization note: Do not allocate memory for stack_ in constructor. Do it lazily when first Push() -> Expand() -> Resize().
| 38 | // Optimization note: Do not allocate memory for stack_ in constructor. |
| 39 | // Do it lazily when first Push() -> Expand() -> Resize(). |
| 40 | Stack(Allocator* allocator, size_t stackCapacity) : allocator_(allocator), ownAllocator_(0), stack_(0), stackTop_(0), stackEnd_(0), initialCapacity_(stackCapacity) { |
| 41 | } |
| 42 | |
| 43 | #if RAPIDJSON_HAS_CXX11_RVALUE_REFS |
| 44 | Stack(Stack&& rhs) |
nothing calls this directly
no outgoing calls
no test coverage detected