AuroraRuntime/Include/auROXTL/auNumberUtils.hpp
Reece 0ca7b2c668 [*] Minor optimization: iconv locale translation
[*] Minor optimization: AuMin/Max return reference [again]
2022-02-17 20:37:29 +00:00

20 lines
360 B
C++

/***
Copyright (C) 2022 J Reece Wilson (a/k/a "Reece"). All rights reserved.
File: auNumberUtils.hpp
Date: 2022-2-1
Author: Reece
***/
#pragma once
template<class T>
constexpr const T &AuMin(const T &a, const T &b)
{
return a < b ? a : b;
}
template<class T>
constexpr const T &AuMax(const T &a, const T &b)
{
return a < b ? b : a;
}