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

initializing containers

P: n/a
Neo
Hello,
If I have container objects(in my case queue) in my class as members do
I need to explicitly initialize them in the class constructor? If so
how do I initialize them?

thanks,
neo

Jan 3 '07 #1
Share this Question
Share on Google+
1 Reply


P: n/a
On 2 Jan 2007 20:19:26 -0800 in comp.lang.c++, "Neo"
<zi*********@yahoo.comwrote,
>Hello,
If I have container objects(in my case queue) in my class as members do
I need to explicitly initialize them in the class constructor? If so
how do I initialize them?
If you want them initialized with the std::queue default constructor
then no more need be said. If you wish to invoke one of the other
std::queue constructors, then include that in the initializer list of
your class's constructor.

Jan 3 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.