std::string
can contain embedded \0
, because it stores its length instead of computing it every time. Some other parts of the standard library (primarily those coming from C) stop at \0
, but not std::string
.
std::string
can contain embedded \0
, because it stores its length instead of computing it every time. Some other parts of the standard library (primarily those coming from C) stop at \0
, but not std::string
.