Speeduino
Loading...
Searching...
No Matches
Functions
minmax.h File Reference

Workaround when min() & max() are defined as macros, which generates compile errors in most C++ standard library implementations. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

template<typename _Tp >
constexpr const _Tp & max (const _Tp &__a, const _Tp &__b)
 
template<typename _Tp >
constexpr const _Tp & min (const _Tp &__a, const _Tp &__b)
 

Detailed Description

Workaround when min() & max() are defined as macros, which generates compile errors in most C++ standard library implementations.

This file will workaround this. It should probably be included before any standard library headers.

Function Documentation

◆ max()

template<typename _Tp >
constexpr const _Tp & max ( const _Tp &  __a,
const _Tp &  __b 
)
constexpr
Here is the caller graph for this function:

◆ min()

template<typename _Tp >
constexpr const _Tp & min ( const _Tp &  __a,
const _Tp &  __b 
)
constexpr
Here is the caller graph for this function: