[Scummvm-cvs-logs] SF.net SVN: scummvm:[51522] scummvm/trunk/common/algorithm.h

lordhoto at users.sourceforge.net lordhoto at users.sourceforge.net
Sat Jul 31 01:24:23 CEST 2010


Revision: 51522
          http://scummvm.svn.sourceforge.net/scummvm/?rev=51522&view=rev
Author:   lordhoto
Date:     2010-07-30 23:24:22 +0000 (Fri, 30 Jul 2010)

Log Message:
-----------
JANITORIAL: Add comment about the stability of Common::sort.

Modified Paths:
--------------
    scummvm/trunk/common/algorithm.h

Modified: scummvm/trunk/common/algorithm.h
===================================================================
--- scummvm/trunk/common/algorithm.h	2010-07-30 22:47:01 UTC (rev 51521)
+++ scummvm/trunk/common/algorithm.h	2010-07-30 23:24:22 UTC (rev 51522)
@@ -197,6 +197,10 @@
 /**
  * Simple sort function, modeled after std::sort.
  * It compares data with the given comparator object comp.
+ *
+ * Like std::sort this is not guaranteed to be stable.
+ * Actually as the time of writing our implementation
+ * is unstable.
  */
 template<typename T, class StrictWeakOrdering>
 void sort(T first, T last, StrictWeakOrdering comp) {


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list