Alermath.hpp 134 B

12345678910
  1. #pragma once
  2. namespace math {
  3. template<typename T>
  4. inline int sgn(T t) {
  5. return t == 0 ? 0 : t > 0 ? 1 : -1;
  6. }
  7. }