Why would I ever want to call std::string::data()
over std::string::c_str()
? Surely there is some method to the standard's madness here...
c_str() guarantees NUL termination. data() does not.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With