By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
431,872 Members | 2,392 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 431,872 IT Pros & Developers. It's quick & easy.

Construct a queue with a initial size ...

P: n/a
Can i construct a queue with a initial size ?

i want to construct with a initial size to save processing for
allocating memory like vectors ...

Aug 12 '07 #1
Share this Question
Share on Google+
1 Reply


P: n/a
On 2007-08-12 09:15, PicO wrote:
Can i construct a queue with a initial size ?

i want to construct with a initial size to save processing for
allocating memory like vectors ...
Not that I know of, but if you are worried about that you can use
std::list as the underlying container.

--
Erik Wikström
Aug 12 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.