天天看點

STL - 容器 - 運作期指定排序準則

RuntimeCmp.hpp

運作結果:

---------------- runtimeCompare(): Run Start ----------------

coll1: 1 2 4 5 6 7

coll2: 7 6 5 4 2 1

coll1: 7 6 5 4 3 2 1

coll1 and coll2 have the same sorting criterion

---------------- runtimeCompare(): Run End ----------------

繼續閱讀