HomePhabricator

[ADT/STLExtras.h] - Add llvm::is_sorted wrapper and update callers.
Audit Required1647ff6e2753

Authored by grimar on Apr 13 2020, 4:46 AM.

Description

[ADT/STLExtras.h] - Add llvm::is_sorted wrapper and update callers.

It can be used to avoid passing the begin and end of a range.
This makes the code shorter and it is consistent with another
wrappers we already have.

Differential revision: https://reviews.llvm.org/D78016

Details