ETLCPP / etl

Embedded Template Library
https://www.etlcpp.com
MIT License
2.04k stars 371 forks source link

optimize find_first_not_of and find_last_not_of on string_view #877

Closed KammutierSpule closed 2 months ago

KammutierSpule commented 2 months ago

on find_first_not_of and find_last_not_of


         if (mbegin[position] == view[j])
          {
            found = true;
// <-- missing a break here? to optimize early exit?
          }
jwellbelove commented 2 months ago

Fixed 20.38.11