3 ms·
Is there a way to do this without involving the overhead of a full copy, though?
by saagarjha 9y ago
Is there a way to do this without involving the overhead of a full copy, though?
- alexhutcheson 9y agoNot that I'm aware of - a const std::string& parameter needs to be a reference to a std::string object, and there's no guarantee that a given string_view object is pointing to a std::string.