MCPcopy Create free account
hub / github.com/deathkiller/jazz2-native / isNegative

Function isNegative

Sources/Shared/Base/Format.cpp:45–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43
44 template<typename T, std::enable_if_t<is_signed<T>::value, int> = 0>
45 constexpr bool isNegative(T value) {
46 return (value < 0);
47 }
48 template<typename T, std::enable_if_t<!is_signed<T>::value, int> = 0>
49 constexpr bool isNegative(T) {
50 return false;

Callers 1

formatNumberFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected