4#ifndef TETL_ALGORITHM_LEXICOGRAPHICAL_COMPARE_HPP
5#define TETL_ALGORITHM_LEXICOGRAPHICAL_COMPARE_HPP
7#include <etl/_functional/less.hpp>
17template <
typename InputIt1,
typename InputIt2,
typename Compare>
21 for (; (f1 != l1)
and (f2 != l2); ++f1, (
void)++f2) {
29 return (f1 == l1)
and (f2 != l2);
33template <
typename InputIt1,
typename InputIt2>
36 return etl::lexicographical_compare(f1, l1, f2, l2,
etl::
less());
constexpr auto lexicographical_compare(InputIt1 f1, InputIt1 l1, InputIt2 f2, InputIt2 l2) -> bool
Definition lexicographical_compare.hpp:34
constexpr auto lexicographical_compare(InputIt1 f1, InputIt1 l1, InputIt2 f2, InputIt2 l2, Compare comp) -> bool
Checks if the first range [f1, l1) is lexicographically less than the second range [f2,...
Definition lexicographical_compare.hpp:18
Definition adjacent_find.hpp:9
Function object for performing comparisons. Unless specialised, invokes operator< on type T....
Definition less.hpp:15