mercredi 23 janvier 2019

How to define a collection of stack objects?

I am wondering if I can define a set of stack objects inside as part of list or vector? What I am trying to do is defining a collection of stack objects which I can get and add like normal int or float type inside one of STL containers. For example: vector stackCollection But it gives me error: use of class template 'stack' requires template arguments.

Is there any way to do this in c++?

Aucun commentaire:

Enregistrer un commentaire