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

Go to the source code of this file.

Namespaces

namespace  etl
 

Functions

template<typename T>
constexpr auto minmax (T const &a, T const &b) -> pair< T const &, T const & >
 Returns the lowest and the greatest of the given values.
 
template<typename T, typename Compare>
constexpr auto minmax (T const &a, T const &b, Compare comp) -> pair< T const &, T const & >
 Returns the lowest and the greatest of the given values.