Quantcast
Channel: User HolyBlackCat - Stack Overflow
Viewing all articles
Browse latest Browse all 1287

Comment by HolyBlackCat on length function in c++

$
0
0
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.

Viewing all articles
Browse latest Browse all 1287

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>