Timeline for answer to Directly write into char* buffer of std::string by Israel Unterman
Current License: CC BY-SA 3.0
Post Revisions
3 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Aug 29, 2016 at 12:11 | history | edited | Israel Unterman | CC BY-SA 3.0 |
edited body
|
| Aug 29, 2016 at 7:45 | comment | added | Garf365 |
it's also true for std::string since C++11 and before, as said MatinBonner in a comment of other answer, although that behavior is non standard, most of standard lib implements std::string as a contiguous memory
|
|
| Aug 29, 2016 at 7:39 | history | answered | Israel Unterman | CC BY-SA 3.0 |