I need a class which looks like this:
template<typename T, class S, size_t C>
class myClass
{
public:
myClass(); // Ctor
/*
*/
private:
S myData;
}
Where T is type of stored data, S is a container type and C is it's size. Methods won't depend on a container type, but I still need to properly initialize S. For example, let S be std::vector
, I tried:
template<typename T, size_t C>
myClass<T, std::vector<T>, C>::myClass()
{
}
But I get E0040 expected identifier
error.