Skip to content
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

Request: allow (overload) string append a string_view ? #962

Open
KammutierSpule opened this issue Sep 26, 2024 · 1 comment
Open

Request: allow (overload) string append a string_view ? #962

KammutierSpule opened this issue Sep 26, 2024 · 1 comment
Assignees

Comments

@KammutierSpule
Copy link

Currently:

string& append(const string& str);
string& append(const string& str, size_t subpos, size_t sublen);
string& append(const char* s);
string& append(const char* s, size_t n);
string& append(size_t n, char c);

template <typename TIterator>
string& append(TIterator first, Titerator last);

without using the iterator?

@jwellbelove
Copy link
Contributor

This functionality would logically be applicable to construction, insert, assign, 'append', replace, assignment operator, as well.

There are also some 'string view' like functions that were added with C++20.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: In progress
Development

No branches or pull requests

2 participants