MCPcopy Create free account
hub / github.com/OpenDDS/OpenDDS / cmp

Function cmp

dds/DCPS/XTypes/Utils.cpp:498–507  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

496namespace {
497 template <typename T>
498 void cmp(int& result, T a, T b)
499 {
500 if (a < b) {
501 result = -1;
502 } else if (a > b) {
503 result = 1;
504 } else {
505 result = 0;
506 }
507 }
508
509 DDS::ReturnCode_t member_compare(int& result,
510 DDS::DynamicData_ptr a_data, DDS::MemberId a_id,

Callers 4

lessMethod · 0.70
equalMethod · 0.70
member_compareFunction · 0.70
operator<Method · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected