Is it possible to have a templated c++ stl container in another class without specifying the type prior to compile time? I haven't coded in c++ in a while and im at a total loss.
For example - Not real code. Just outlining the problem:
Code:
class HasAContainer{
queue<ANY_TYPE> buffer
HasAContainer(queue<ANY_TYPE> buffer){
this.buffer = buffer
}
main(){
queue<int> buf1;
HasAContainter one(b);
queue<float> buf2;
HasAContainer two(c)
}