c++ - Abstract wrapper for stl containers? -


I want to display some objects as intangible containers with stat-style manipulation possibilities (for_each loops, iterators) And hide the container implementation details.

Performance issues do not matter (memory allocation is also acceptable when accepting virtual calls and "universal" eaterators).

I have an abstract container interface

but maybe there are existing libraries useful for this purpose?

Or it may be that it is an implementation adapter for virtual functions ("universal" atter on the container) and STL sequential containers. Completely a bad idea?

You can also find useful.

Comments