-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
string + string_view operators #1
Comments
Let's talk about what these might do: I think that the last three are unwelcome. Silently creating a string when you're manipulating string_views is not (IMHO) a good idea. |
Why? |
s << s and s << sv would be nice too. They'd not create new strings and look similar to stream output operations. |
I'm not sure what you mean by |
s += s and s += sv, respectively. Like stringstream but using string instead. It'd allow for a more efficient way to do:
|
It'd be nice if the following (and more) operators were supported in Boost for std::string, boost::string_ref and boost::string_view. Since the standard doesn't provide them (yet) for std::string_view having them for that type would be great as well.
s += sv;
s + sv;
sv + s;
sv + sv; ?
The text was updated successfully, but these errors were encountered: