prime/include/rstl/math.hpp
Henrique Gemignani Passos Lima 1e59dd91fc algorithm.hpp header fixes
Former-commit-id: 675a1904c4496aa699578969eef6d7429bfb43c8
2022-09-30 15:46:54 +03:00

19 lines
317 B
C++

#ifndef _RSTL_MATH_HPP
#define _RSTL_MATH_HPP
#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