MCPcopy Create free account
hub / github.com/WolfireGames/overgrowth / InRange

Function InRange

Source/JSON/jsoncpp.cpp:2229–2231  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2227#if !defined(JSON_USE_INT64_DOUBLE_CONVERSION)
2228template <typename T, typename U>
2229static inline bool InRange(double d, T min, U max) {
2230 return d >= min && d <= max;
2231}
2232#else // if !defined(JSON_USE_INT64_DOUBLE_CONVERSION)
2233static inline double integerToDouble(Json::UInt64 value) {
2234 return static_cast<double>(Int64(value / 2)) * 2.0 + Int64(value & 1);

Callers 5

asIntMethod · 0.70
asUIntMethod · 0.70
asInt64Method · 0.70
asUInt64Method · 0.70
isConvertibleToMethod · 0.70

Calls 1

integerToDoubleFunction · 0.70

Tested by

no test coverage detected