MCPcopy Create free account
hub / github.com/ValveSoftware/Proton / InRange

Function InRange

vrclient_x64/jsoncpp.cpp:2494–2496  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2492#if !defined(JSON_USE_INT64_DOUBLE_CONVERSION)
2493template <typename T, typename U>
2494static inline bool InRange(double d, T min, U max) {
2495 return d >= min && d <= max;
2496}
2497#else // if !defined(JSON_USE_INT64_DOUBLE_CONVERSION)
2498static inline double integerToDouble(Json::UInt64 value) {
2499 return static_cast<double>(Int64(value / 2)) * 2.0 + Int64(value & 1);

Callers 5

asIntMethod · 0.85
asUIntMethod · 0.85
asInt64Method · 0.85
asUInt64Method · 0.85
isConvertibleToMethod · 0.85

Calls 1

integerToDoubleFunction · 0.85

Tested by

no test coverage detected