[geos-commits] r3178 - trunk/include/geos/geom

svn_geos at osgeo.org svn_geos at osgeo.org
Thu Feb 3 14:58:58 EST 2011


Author: strk
Date: 2011-02-03 11:58:58 -0800 (Thu, 03 Feb 2011)
New Revision: 3178

Modified:
   trunk/include/geos/geom/Coordinate.h
Log:
provide standard strict weak ordering operator for Coordinate

Modified: trunk/include/geos/geom/Coordinate.h
===================================================================
--- trunk/include/geos/geom/Coordinate.h	2011-02-03 19:58:51 UTC (rev 3177)
+++ trunk/include/geos/geom/Coordinate.h	2011-02-03 19:58:58 UTC (rev 3178)
@@ -136,6 +136,11 @@
 
 };
 
+/// Strict weak ordering operator for Coordinate
+inline bool operator<(const Coordinate& a, const Coordinate& b) {
+  return CoordinateLessThen()(a,b);
+}
+
 /// Output function
 GEOS_DLL std::ostream& operator<< (std::ostream& os, const Coordinate& c);
 



More information about the geos-commits mailing list