22 #ifndef EDSP_LINEAR_SEARCH_HPP    23 #define EDSP_LINEAR_SEARCH_HPP    26 #include <edsp/meta/iterator.hpp>    28 namespace edsp { 
inline namespace algorithm {
    37     template <
typename ForwardIt>
    38     constexpr ForwardIt 
binary_search(ForwardIt first, ForwardIt last, 
const meta::value_type_t<ForwardIt>& value) {
    39         return std::find(first, last, value);
    49     template <
typename ForwardIt, 
class UnaryPredicate>
    50     constexpr ForwardIt 
binary_search(ForwardIt first, ForwardIt last, UnaryPredicate p) {
    51         return std::find(first, last, p);
    55 #endif // EDSP_LINEAR_SEARCH_HPP constexpr ForwardIt binary_search(ForwardIt first, ForwardIt last, const meta::value_type_t< ForwardIt > &value)
Checks if an element equivalent to value appears within the range [first, last). 
Definition: binary_search.hpp:41
 
Definition: amplifier.hpp:29