C++ (Qt)struct CTest { bool operator == ( const CTest & sec ) const { return mCRC == sec.mCRC && mData == sec.mData; } int mCRC; QVector <char> mData;}; inline uint qHash( const CTest & key ) { return key.mCRC; }