23 lines
412 B
Plaintext
23 lines
412 B
Plaintext
|
|
#pragma once
|
|
|
|
#if !defined(BAD_APPLE_OS_ALGORITHM_INCLUDED)
|
|
#define BAD_APPLE_OS_ALGORITHM_INCLUDED
|
|
|
|
namespace std
|
|
{
|
|
template<typename T>
|
|
constexpr const T& min(const T& left, const T& right)
|
|
{
|
|
return right < left ? right : left;
|
|
}
|
|
|
|
template<typename T>
|
|
constexpr const T& max(const T& left, const T& right)
|
|
{
|
|
return right > left ? right : left;
|
|
}
|
|
}
|
|
|
|
#endif // !defined(BAD_APPLE_OS_ALGORITHM_INCLUDED)
|