emlabcpp
modern opinionated embedded C++ library
min_max.h File Reference
#include <array>
#include <functional>
+ Include dependency graph for min_max.h:

Go to the source code of this file.

Classes

struct  emlabcpp::min_max< T >
 A structure representing a range defined by a minimum and a maximum value. More...
 
struct  std::tuple_size< emlabcpp::min_max< T > >
 
struct  std::tuple_element< I, emlabcpp::min_max< T > >
 

Namespaces

 emlabcpp
 MIT License.
 

Functions

template<typename T , typename Compare >
constexpr T const & emlabcpp::clamp (T const &x, min_max< T > const &mm, Compare &&comp)
 
template<typename T >
constexpr T const & emlabcpp::clamp (T const &x, min_max< T > const &mm)
 
template<typename T , typename... Args>
 emlabcpp::requires (std::same_as< Args, min_max< T > > &&...) const expr min_max< T > intersection(min_max< T > const &head
 
 emlabcpp::f (args)
 
template<typename T >
constexpr min_max< T > emlabcpp::expand (min_max< T > const &mm, T const &val)
 
template<typename T >
constexpr bool emlabcpp::contains (min_max< T > const &mm, T const &val)
 

Variables

Args const & emlabcpp::args