Skip to content

Instantly share code, notes, and snippets.

@nikgalushko
Created April 9, 2020 16:48
Show Gist options
  • Save nikgalushko/a85c17ff326c42dfd9b902d69ab23c98 to your computer and use it in GitHub Desktop.
Save nikgalushko/a85c17ff326c42dfd9b902d69ab23c98 to your computer and use it in GitHub Desktop.
lexicographical_compare(
// ... все символы строки l ...
begin(l), end(l),
// ... со всеми символами строки r ...
begin(r), end(r),
// ..., используя в качестве компаратора сравнение отдельных символов без учёта регистра
[](char cl, char cr) { return tolower(cl) < tolower(cr); }
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment