Does std::stack expose iterators?

后端 未结 5 1236
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-11-29 08:57

Does the std::stack in the C++ STL expose any iterators of the underlying container or should I use that container directly?

5条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-11-29 09:32

    In SGI, MSDN and GNU documentations, stack doesn't provide an iterator.

提交回复
热议问题