c++ stl containers in classes
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:
} |
Yes it is possible not to specify the type of the elements in the stl container. Just make your class to a template.
Code:
#include <queue> |
All times are GMT -5. The time now is 07:45 PM. |