prime/include/rstl/math.hpp
Luke Street 329618c585 More main progress; tons of headers & stuff
Former-commit-id: a6e365791b35de8a1c056db8a4833150450c84d9
2022-09-13 00:28:02 -04:00

18 lines
326 B
C++

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