Last active
June 23, 2016 19:39
-
-
Save ilpropheta/650b1d99b0ae12158e46440b9d5adad3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
string toCheck(S.size()-1, 0); // all but one | |
auto newBegin = copy(begin(S), diffIt, begin(toCheck)); | |
copy(next(diffIt), end(S), newBegin); | |
// or, by inlining the second call to copy: | |
string toCheck(S.size()-1); // all but one | |
copy(next(diffIt), end(S), copy(begin(S), diffIt, begin(toCheck))); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment