MCPcopy Create free account
hub / github.com/davisking/dlib / compare_first_reverse_second

Function compare_first_reverse_second

dlib/svm/ranking_tools.h:221–234  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

219 namespace impl
220 {
221 inline bool compare_first_reverse_second (
222 const std::pair<double,bool>& a,
223 const std::pair<double,bool>& b
224 )
225 {
226 if (a.first < b.first)
227 return true;
228 else if (a.first > b.first)
229 return false;
230 else if (a.second && !b.second)
231 return true;
232 else
233 return false;
234 }
235 }
236
237 template <

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected