Workaround when min() & max() are defined as macros, which generates compile errors in most C++ standard library implementations.
More...
Go to the source code of this file.
|
| 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) |
| |
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.
◆ max()
template<typename _Tp >
| constexpr const _Tp & max |
( |
const _Tp & |
__a, |
|
|
const _Tp & |
__b |
|
) |
| |
|
constexpr |
◆ min()
template<typename _Tp >
| constexpr const _Tp & min |
( |
const _Tp & |
__a, |
|
|
const _Tp & |
__b |
|
) |
| |
|
constexpr |