MCPcopy Create free account
hub / github.com/Illumina/hap.py / compare

Method compare

external/jsoncpp/jsoncpp.cpp:2000–2006  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1998ValueType Value::type() const { return type_; }
1999
2000int Value::compare(const Value &other) const {
2001 if (*this < other)
2002 return -1;
2003 if (*this > other)
2004 return 1;
2005 return 0;
2006}
2007
2008bool Value::operator<(const Value &other) const {
2009 int typeDelta = type_ - other.type_;

Callers 2

operator<Method · 0.80
operator==Method · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected