MCPcopy Create free account
hub / github.com/Tencent/rapidjson / Stack

Method Stack

include/rapidjson/internal/stack.h:40–41  ·  view source on GitHub ↗

Optimization note: Do not allocate memory for stack_ in constructor. Do it lazily when first Push() -> Expand() -> Resize().

Source from the content-addressed store, hash-verified

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)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected