I was wondering if there a way to set the stack size while using the C++ STL for the stack container?
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With