template <template <typename> class container_type>
class MyClass
{
class Internal{
};
};
I want to use this class (or how it would look correctly) in a way like the following...
MyClass(std::list);
...so that in MyClass container_type is declared/typedef'd as:
std::list<Internal*>
Is something like this somehow possible?
You likely want something like the following:
Here's a compilable example you can play with. Note that both the extra
typenameand the definition of an allocator is required here.