emlabcpp
modern opinionated embedded C++ library
emlabcpp::min_max< T > Struct Template Reference

A structure representing a range defined by a minimum and a maximum value. More...

#include <min_max.h>

+ Inheritance diagram for emlabcpp::min_max< T >:
+ Collaboration diagram for emlabcpp::min_max< T >:

Public Types

using value_type = T
 

Public Member Functions

constexpr T & min ()
 
constexpr T const & min () const
 
constexpr T & max ()
 
constexpr T const & max () const
 
constexpr min_max ()=default
 
constexpr min_max (T min, T max)
 

Detailed Description

template<typename T>
struct emlabcpp::min_max< T >

A structure representing a range defined by a minimum and a maximum value.

Member Typedef Documentation

◆ value_type

template<typename T >
using emlabcpp::min_max< T >::value_type = T

Constructor & Destructor Documentation

◆ min_max() [1/2]

template<typename T >
constexpr emlabcpp::min_max< T >::min_max ( )
constexprdefault

◆ min_max() [2/2]

template<typename T >
constexpr emlabcpp::min_max< T >::min_max ( min,
max 
)
inlineconstexpr

Member Function Documentation

◆ max() [1/2]

template<typename T >
constexpr T& emlabcpp::min_max< T >::max ( )
inlineconstexpr

◆ max() [2/2]

template<typename T >
constexpr T const& emlabcpp::min_max< T >::max ( ) const
inlineconstexpr

◆ min() [1/2]

template<typename T >
constexpr T& emlabcpp::min_max< T >::min ( )
inlineconstexpr

◆ min() [2/2]

template<typename T >
constexpr T const& emlabcpp::min_max< T >::min ( ) const
inlineconstexpr

The documentation for this struct was generated from the following file: