Remove recursion from rfind
Recursion on a long strings may cause stack overflow. Previous implementation was tricky, as at first glance rfind( CharT ch, size_type pos = npos ) overload is called and everything is ok, but it calls rfind(const CharT *s, size_type pos, size_type count) under the hood.
parent
83c05d77
Please register or sign in to comment