Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bytedance/sonic-cpp
/ Stack
Method
Stack
include/sonic/internal/stack.h:29–29 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
27
class Stack {
28
public:
29
Stack(size_t cap = defaultCapcity()) : cap_(cap) { Reserve(cap); }
30
Stack(const Stack&) = delete;
31
Stack(Stack&& rhs) : buf_(rhs.buf_), top_(rhs.top_), cap_(rhs.cap_) {
32
rhs.setZero();
Callers
nothing calls this directly
Calls
1
setZero
Method · 0.80
Tested by
no test coverage detected