默认情况下,std::stack<int> 使用 STL vector 作为其底层集合类。这个“栈”支持理论操作 push(123)pop() 和 peek(称为 top())。

Last modified: Thursday, 30 January 2025, 3:17 PM