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



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

LINK TO THIS PAGE  


rating :  0   |  0


  Page 1 of 1

1

 
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
.


  Page 1 of 1

1

 


Related Articles
 

NEWER

pg.1232     pg.940     pg.716     pg.544     pg.412     pg.311     pg.234     pg.175     pg.130     pg.96     pg.70     pg.50     pg.35     pg.24     pg.16     pg.10     pg.6     pg.3     pg.1

OLDER