stl c++ stack用什么容器实现的
1个回答
展开全部
template<typename T,typename Container=std::deque<T>>class stack;
//默认deque,还可以用std::vector,std::list或者是自定义的
/*
The container must satisfy the requirements of SequenceContainer.
Additionally,
it must provide the following functions with the usual semantics:
back()、push_back()、pop_back()
*/
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询