#pragma once #include "tl/detail/prologue.h" #include "tl/iterator.h" #include namespace tl { ////////////////////////////////////////////////////////////////////////// // adjacent_find() // // Container-based version of the `std::adjacent_find()` function to // find equal adjacent elements within a container. template auto adjacent_find(Squence& sequence) noexcept -> decltype(tl::begin(sequence)); // Overload of adjacent_find() for using a predicate evaluation other than `==` as // the function's test condition. template auto adjacent_find(Sequence& sequence, BinaryPredicate&& p) noexcept -> decltype(tl::begin(sequence)); ////////////////////////////////////////////////////////////////////////// } // end namespace tl #include "tl/detail/algorithm/adjacent_find.inl"