|
Boost : |
Subject: Re: [boost] Stack-based vector container
From: Domagoj Saric (dsaritz_at_[hidden])
Date: 2011-01-25 18:19:07
"Christopher Jefferson" <chris_at_[hidden]> wrote in message
news:C656C64C-8E00-4D67-ACE1-6A95B9A65281_at_bubblescope.net...
> I find most modern compilers do not have issues with calling end()
> repeatedly, or push_back().
push_back() is a possibly-new-calling/possibly-throwing 'fat function', in
which way do you mean that modern compilers 'do not have issues' with it?
And could you please name such a compiler...
> Also it is unclear if operator[] or iterators are more efficient.
You know of a (real) use case where indexed based access is faster than
pointer based?
-- "What Huxley teaches is that in the age of advanced technology, spiritual devastation is more likely to come from an enemy with a smiling face than from one whose countenance exudes suspicion and hate." Neil Postman
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk