prime/include/rstl/math.hpp
Luke Street 7f83e1fa03 Standardize include guards, clang-format headers
Former-commit-id: 261ee48bba0546f4620447040b7c3d3034686796
2022-10-09 01:13:17 -04:00

19 lines
323 B
C++

#ifndef _RSTL_MATH
#define _RSTL_MATH
#include "types.h"
namespace rstl {
template < typename T >
inline const T& min_val(const T& a, const T& b) {
return (b < a) ? b : a;
}
template < typename T >
inline const T& max_val(const T& a, const T& b) {
return (a < b) ? b : a;
}
} // namespace rstl
#endif // _RSTL_MATH