mirror of
https://github.com/scylladb/scylladb.git
synced 2026-04-21 17:10:35 +00:00
We had to wait many years for it, but finally we have a starts_with() method in C++20. Let's use it instead of ugly substr()-based code. This is probably not a performance gain - substr() for a string_view was already efficient. But it makes the code easier to understand, and it allows us to rejoice in our decision to switch to C++20. Signed-off-by: Nadav Har'El <nyh@scylladb.com> Message-Id: <20200526185812.165038-2-nyh@scylladb.com>
196 KiB
196 KiB