#C++ Stacks Understanding
19 messages · Page 1 of 1 (latest)
When your question is answered use !solved to mark the question as resolved.
Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question run !howto ask.
what argument are you talking about specifically?
What do the containers of Stacks do ?
Yea I read that, but how does changing the container type affect the stack ?
so yeah, thats a bit of a complex awnser, std::stack is essentially an interface for LIFO behavior but it can be implemented in any data structure as long as it provides a set of functions
what gives it more flexibility
So all I need to know is affects the speed ?
Is that the surface level knowledge ?
honestly most of the time you never touch that parameter
the std::decue<t> is plenty in most cases
alright, but when can the need to change the parameter arise ?
or cases I might have to change the parameter ?
honestly you would change the underlying type when you want different behaviral patterns from your types, meaby you have a custom allocator you can now provide your own type that uses your custom allocator but have a nice and simple std::stack interface
alright
thx :D
!solved