MCPcopy Create free account
hub / github.com/IfcOpenShell/IfcOpenShell / less_to_order

Function less_to_order

src/ifcgeom/taxonomy.cpp:75–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73
74 template <typename T>
75 typename std::enable_if<std::is_base_of<item, T>::value, int>::type less_to_order(const T& a, const T& b) {
76 const bool a_lt_b = compare(a, b);
77 const bool b_lt_a = compare(b, a);
78 return a_lt_b ?
79 -1 : (!b_lt_a ? 0 : 1);
80 }
81
82 template <typename T>
83 typename std::enable_if<!std::is_base_of<item, T>::value, int>::type less_to_order(const T& a, const T& b) {

Callers 2

less_to_order_optionalFunction · 0.85
compareFunction · 0.85

Calls 1

compareFunction · 0.85

Tested by

no test coverage detected