This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
It looks like the current implementation of string in libstdc++ is copy on write correct? Is this also true of gcc 3.4? Is this behavior guaranteed for the future, or will C++0x somehow require a change here?
Generally I'm wondering whether it will remain efficient to do things like stick strings by value in vectors to be sorted. Right now as I see it, there's no real point in wrapping the string in a shared_ptr, since it already uses reference counting internally.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |