tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
min_element.hpp File Reference

Go to the source code of this file.

Namespaces

namespace  etl
 

Functions

template<typename ForwardIt>
constexpr auto min_element (ForwardIt first, ForwardIt last) noexcept -> ForwardIt
 Finds the smallest element in the range [first, last). Elements are compared using operator<.
 
template<typename ForwardIt, typename Compare>
constexpr auto min_element (ForwardIt first, ForwardIt last, Compare comp) -> ForwardIt
 Finds the smallest element in the range [first, last). Elements are compared using the given binary comparison function comp.