DEVELOP > c-Plus-Plus > Is it a right way for using containers std::list< std::string > strList ?
| Topic: |
DEVELOP > c-Plus-Plus |
| User: |
"Anton" |
| Date: |
06 Aug 2003 09:00:42 AM |
| Object: |
Is it a right way for using containers std::list< std::string > strList ? |
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 !
.
|
|
| User: "Peter van Merkerk" |
|
| Title: Re: Is it a right way for using containers std::list< std::string > strList ? |
06 Aug 2003 09:10:04 AM |
|
|
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
.
|
|
|
|

|
Related Articles |
|
|