MCPcopy Create free account
hub / github.com/catboost/catboost / IsInteger

Method IsInteger

library/cpp/json/ordered_maps/json_value_ordered.cpp:840–851  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

838 }
839
840 bool TJsonValue::IsInteger() const noexcept {
841 switch (Type) {
842 case JSON_INTEGER:
843 return true;
844 case JSON_UINTEGER:
845 return (Value.UInteger <= static_cast<unsigned long long>(Max<long long>()));
846 case JSON_DOUBLE:
847 return ((long long)Value.Double == Value.Double);
848 default:
849 return false;
850 }
851 }
852
853 bool TJsonValue::IsUInteger() const noexcept {
854 switch (Type) {

Callers 3

operator==Method · 0.45
Y_UNIT_TESTFunction · 0.45
Y_UNIT_TESTFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected