預設情況下,std::stack<int> 使用 STL 向量作為其底層集合類。這個“堆疊”支援理論操作 push(123)、pop() 和窺視(名為 top())。
std::stack<int>
push(123)
pop()
top()
有關堆疊的更多資訊(包括互動式示例)