On 27 Feb, 04:57, "DevNull" <smor...@gmail.com> wrote:
> The analogies are getting a bit silly.
Well.. since comp.lang.c++ isnt moderated, and comp.lang.c++.moderated
takes itself way too serious, I like to try to raise the tone with
some bawdy humour from time to time
Obviously though... I failed this time
<...>
> So I created a simple test problem, using a normal source file, and
> general scoping rules I wrote a simple parser.
<...>
Looks fun
> When it comes down to it though I wonder if there is/was any
> performance gains to using stack vs a deque in a LIFO manner, or if
> it's just syntactic sugar.
Basically yes. Except you can theoretically replace the default
container template param with e.g your own "model" of stack etc
without changing the source code.
In which case you would then only need to provide the operations
defined for stack, without having to provide the whole interface for
more versatile containers. Thats the theory, though I generally just
stick with what I'm given...
regards
Andy Little