MCPcopy Create free account
hub / github.com/USCiLab/cereal / Stack

Method Stack

include/cereal/external/rapidjson/internal/stack.h:41–42  ·  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

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)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected