RE: [C] Type Ambiguous Stack 01-03-2015, 06:28 PM
#7
(01-03-2015, 06:26 PM)0xDEAD10CC Wrote: How is it not a real stack because it's limited to a single type? The templated std:tack type in C++ only supports a single type unless you create a container to wrap around embedded data of certain types to add to the stack so that it's recognized as a single type. The idea of a stack is LIFO, as to what goes on the pile, it doesn't matter.
*limited to a single size more or less.
Code:
PSH A
PSH D:X
PSH D
PSH X:SSRsystem stacks don't give a fuck about what you're putting on there



























tack type in C++ only supports a single type unless you create a container to wrap around embedded data of certain types to add to the stack so that it's recognized as a single type. The idea of a stack is LIFO, as to what goes on the pile, it doesn't matter.![[+]](https://sinister.li/images/modern/collapse_collapsed.png)