Hi All.
I trying to use:
In programm:Code:
struct FLess : public std::binary_function<HASH, HASH, bool> { int Col; static void setCol( int C ); inline bool operator()( const HASH &rec1, const HASH &rec2 ) { return ( rec1.hash.value( Col ) < rec2.hash.value( Col ) ); } };
How make sort by Col?Code:
FLess::setCol( 5 ); if (order == Qt::AscendingOrder) std::sort( Records[i].begin(), Records[i].end(), FLess() );
Thanks.
