Reputation: 47
I was wondering if there a way to set the stack size while using the C++ STL for the stack container?
Upvotes: 3
Views: 999
Reputation:
No, there isn't. To do so you would need to set the maximum size for the underlying container used to implement the stack
(for example, deque
or list
), as stack
is an adaptor, not a container, and there is no way of doing that.
Upvotes: 4