1 2 3 4 5 6 7 8 9 10
#pragma once namespace MathUtils { template <class T> constexpr T Abs(T t) { return t < 0 ? -t : t; } } // namespace MathUtils