Hi,

Can anyone pls let me know the reason as to why do STL - Container Adaptors types do not support the use of iterators for iterating through their elements?

Thanx

Member Avatar for jencas

Why should they? If you need iterators for stacks or queues perhaps you are using the wrong type of container. Stacks and queues have limited access by design, this should not be circumvented by means of iterators

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.