- 链接地址:https://blog.csdn.net/weixin_43971764/article/details/88394441
- 链接标题:C++ 容器适配器——栈(stack)和队列(queue)都不支持迭代器_不支持迭代器的容器-CSDN博客
- 所属网站:blog.csdn.net
- 被收藏次数:7494
对于queue<int> q; 在q.push(10); 后,以下能正确返回TRUE的是:(多选题) A. q.front() == *q.begin(); B. q.front() == q.back(); C. q.emplace(20), q.back() == 20;答案:解析:A选项,容器适配器——队列queue没有成员begin和end(因为栈和队列不支持迭代器,不..._不支持迭代器的容器
版权声明:本文发布于特牛网址导航 内容均来源于互联网 如有侵权联系删除
标签:不支持迭代器的容器