MCPcopy Create free account
hub / github.com/apache/qpid-proton / compare

Function compare

cpp/src/value.cpp:79–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77int compare_next(decoder& a, decoder& b);
78
79template <class T> int compare(const T& a, const T& b) {
80 if (a < b) return -1;
81 else if (a > b) return +1;
82 else return 0;
83}
84
85int compare_container(decoder& a, decoder& b) {
86 start sa, sb;

Callers 5

compare_containerFunction · 0.85
compare_simpleFunction · 0.85
compare_nextFunction · 0.85
operator==Function · 0.85
operator<Function · 0.85

Calls 3

compare_nextFunction · 0.85
rewindMethod · 0.45
moreMethod · 0.45

Tested by

no test coverage detected