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

Is it a right way for using containers std::list< std::string > strList ?

P: n/a
Hello !
I am writing a small program and wondering whether this expression is
right?

std::list< std::string > strList

I mean that this is container into container and don't know the side
effects of this expression, that could crash my program. Please , if
you know any side effect will you explain me where is it ?

Thanks in advanced !
Jul 19 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
> I am writing a small program and wondering whether this expression is
right?

std::list< std::string > strList

I mean that this is container into container and don't know the side
effects of this expression, that could crash my program. Please , if
you know any side effect will you explain me where is it ?


Looks perfectly sound to me (except for the missing semicolon). The
std::string class meets the "copy constructable" and "assignable"
requirements of the C++ Standard Library containers.

--
Peter van Merkerk
peter.van.merkerk(at)dse.nl
Jul 19 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.