Hi everyone, i'm new in DaniWeb, so forgive me by some mistake, x)

I need create a iterator, it can receive any kind of struct of STL, like map, vector, list, ...

How i do that?
Someone have any idea?

Thanks by your attention.

Best regards,
Valter Henrique.

Why create it when stl already has one for you? Maybe you should give
more information on what you are trying to do.

Why create it when stl already has one for you? Maybe you should give
more information on what you are trying to do.

Hi, i need create an iterator that supports any kind of struct, like map, vector, list... etc.

In STL, we have to be specific, we have to tell the struct that we gonna use.
Each struct already have your own iterator, but i need an iterator to any kind of structure, a single iterator to acess vector, map, list, .. etc.

Thanks by your attention.

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.