Repository navigation
Replies: 2 comments 1 reply
|
remove_prefix sounds like a natural candidate with a precedent. |
0 replies
|
Name |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
For a type that represents a sequence of byes bound from two sides,
operator+=does not generalize from raw pointers unambiguously and has counterintuitive semantics:operator+=associated with "increasing" actually shrinks the buffer.std::stringwhich can be made a buffer, usesoperator+=for something completely different.Please use a named member function for this purpose, like
.consume_prefix().All reactions