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