is sv1 < sv2 More...
#include <OutputDDToDDL.h>
Public Member Functions | |
bool | operator() (const DDsvalues_type &sv1, const DDsvalues_type &sv2) |
is sv1 < sv2
Definition at line 17 of file OutputDDToDDL.h.
bool ddsvaluesCmp::operator() | ( | const DDsvalues_type & | sv1, |
const DDsvalues_type & | sv2 | ||
) |
Definition at line 17 of file OutputDDToDDL.cc.
References first, and edm::second().
{ if ( sv1.size() < sv2.size() ) return true; if ( sv2.size() < sv1.size() ) return false; size_t ind = 0; for (; ind < sv1.size(); ++ind) { if ( sv1[ind].first < sv2[ind].first ) return true; if ( sv2[ind].first < sv1[ind].first ) return false; if ( sv1[ind].second < sv2[ind].second ) return true; if ( sv2[ind].second < sv1[ind].second ) return false; } return false; }