MCPcopy Create free account
hub / github.com/InteractiveComputerGraphics/SPlisHSPlasH / is_negative_number

Function is_negative_number

extern/json/json.hpp:18610–18613  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18608 // templates to avoid warnings about useless casts
18609 template <typename NumberType, enable_if_t<std::is_signed<NumberType>::value, int> = 0>
18610 bool is_negative_number(NumberType x)
18611 {
18612 return x < 0;
18613 }
18614
18615 template < typename NumberType, enable_if_t <std::is_unsigned<NumberType>::value, int > = 0 >
18616 bool is_negative_number(NumberType /*unused*/)

Callers 1

dump_integerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected