| 748 | |
| 749 | template <class TIterator, typename TGetKey> |
| 750 | constexpr bool IsSortedBy(TIterator begin, TIterator end, const TGetKey& getKey) { |
| 751 | return IsSorted(begin, end, [&](auto&& left, auto&& right) { return getKey(left) < getKey(right); }); |
| 752 | } |
| 753 | |
| 754 | template <class TContainer, typename TGetKey> |
| 755 | constexpr bool IsSortedBy(const TContainer& c, const TGetKey& getKey) { |
no test coverage detected