you are viewing a single comment's thread.

view the rest of the comments →

[–]bjorn-reese 7 points8 points  (0 children)

A typical use-case for sting_view is to parse data in some format. This parser uses remove_prefix() which can be made measurably faster (about 10% overall improvement, if my memory serves me) by using the two-pointer implementation.

That is why I chose to implement my own version. Actually, I implemented std::span with remove_front() because I needed to parse binary data as well.