dot-xx
A personal collection of small C++ modules
|
Number sign. More...
import std;
Namespaces | |
namespace | dxx::math |
The main namespace of the dxx::math module. |
Enumerations | |
enum class | dxx::math::Sign : int { Positive = 1 , Zero = 0 , Negative = -1 } |
Return type of sign. Use std::to_underlying to convert to int |
Functions | |
template<typename T, typename Less = std::less<T>> | |
constexpr Sign | dxx::math::sign (T t, Less less={}, T zero={}) |
Gets the sign of a number. |
Number sign.