Daily bit(e) of C++ | std::ranges::starts_with, std::ranges::ends_with
Daily bit(e) of C++ #435, The C++23 prefix and suffix check range algorithms: std::ranges::starts_with, std::ranges::ends_with.
The two C++23 range algorithms, std::ranges::starts_with and std::ranges::ends_with, implement prefix and suffix checks for ranges.
std::ranges::starts_with can operate on any range, std::ranges::ends_with requires at least a forward range.