3#ifndef TETL_ALGORITHM_LOWER_BOUND_HPP
4#define TETL_ALGORITHM_LOWER_BOUND_HPP
20template <
typename ForwardIt,
typename T,
typename Compare>
21[[nodiscard]]
constexpr auto lower_bound(ForwardIt first, ForwardIt last, T
const& value, Compare comp)
noexcept
34 if (comp(*it, value)) {
46template <
typename ForwardIt,
typename T>
47[[nodiscard]]
constexpr auto lower_bound(ForwardIt first, ForwardIt last, T
const& value)
noexcept -> ForwardIt
constexpr auto lower_bound(ForwardIt first, ForwardIt last, T const &value, Compare comp) noexcept -> ForwardIt
Returns an iterator pointing to the first element in the range [first, last) that is not less than (i...
Definition lower_bound.hpp:21
constexpr auto count(InputIt first, InputIt last, T const &value) -> typename iterator_traits< InputIt >::difference_type
Returns the number of elements in the range [first, last) satisfying specific criteria....
Definition count.hpp:21
constexpr auto advance(It &it, Distance n) -> void
Increments given iterator it by n elements.
Definition advance.hpp:22
constexpr auto distance(It first, It last) -> typename iterator_traits< It >::difference_type
Returns the number of hops from first to last.
Definition distance.hpp:16
Definition adjacent_find.hpp:8
typename etl::iterator_traits< etl::remove_cvref_t< Iter > >::difference_type diff_t
Definition format_to.hpp:13
iterator_traits is the type trait class that provides uniform interface to the properties of LegacyIt...
Definition iterator_traits.hpp:47
Function object for performing comparisons. Unless specialised, invokes operator< on type T....
Definition less.hpp:14