00001 /****************************************************************************************************** 00002 * (C) 2014 markummitchell@github.com. This file is part of Engauge Digitizer, which is released * 00003 * under GNU General Public License version 2 (GPLv2) or (at your option) any later version. See file * 00004 * LICENSE or go to gnu.org/licenses for details. Distribution requires prior written permission. * 00005 ******************************************************************************************************/ 00006 00007 #ifndef POINT_COMPARATOR_H 00008 #define POINT_COMPARATOR_H 00009 00010 #include "Point.h" 00011 00013 struct PointComparator 00014 { 00016 bool operator()(const Point &a, const Point &b) const 00017 { 00018 return a.ordinal() < b.ordinal(); 00019 } 00020 }; 00021 00022 #endif // POINT_COMPARATOR_H