I have a class that holds a collection (a vector) as private member. I'd like to find a proper way to allow users of my class iterate over this collection regardless the specific containter I'm using (vector, list, array...).
I've found this useful article, with a proposed implementation of a pattern (Type Erasure) that would solve this issue, but it's based on Boost library, and I don't want to add a new dependency to my project. I'd like to just rely on POCO.
So, does POCO have any implementation of this Type Erasure concept?
the process of turning a wide variety of types with a common interface into one type with that same interface.
I'm using POCO 1.5.1, by the way.
Many thanks in advance.