10 ms·
[Deleted, misread]
by breuwi 6mo ago
[Deleted, misread]
- Matheus28 6mo agoSince C++11, data() is also required to be null terminated. Per your own source and cppreference.
- breuwi 6mo agoLOL, I need to learn to click on the more modern tabs. Will delete comment.
- beached_whale 6mo agostd::string since C++ 11 guarantees the buffer is zero terminated. The reasoning being thread safety of const members. https://eel.is/c++draft/basic.string#general-3 https://eel.is/c++draft/basic.string#general-3