M
Mike Stenzler
Jonathan Mcdougall wrote:
[snip]
No problemo - but I now see what happened - with the funky comment, I
misinterpeted your inclusion of pop_back() as somehow required rather
than illuminative, then I was led off track by looking at what may be
VC++'s internal representation of the vector. As soon as I looked at the
code snippet and your post this morning it was obvious that I didn't
need the pop_back in the context of what I was doing.
So far vector looks OK for my needs but I'll run a test against a static
array later and see if the overhead is excessive.
Thanks
Mike
[snip]
I just saw that comment, yurk! 'v' contains *one* element now,
not two. pop_back() removes the last element. Sorry.
No problemo - but I now see what happened - with the funky comment, I
misinterpeted your inclusion of pop_back() as somehow required rather
than illuminative, then I was led off track by looking at what may be
VC++'s internal representation of the vector. As soon as I looked at the
code snippet and your post this morning it was obvious that I didn't
need the pop_back in the context of what I was doing.
So far vector looks OK for my needs but I'll run a test against a static
array later and see if the overhead is excessive.
Thanks
Mike