#include <db_cxx.h> int Dbc::cmp(Dbc *other_cursor, int *result, u_int32_t flags);
         The Dbc::cmp() method compares two cursors for equality. Two cursors are equal if and only if they are positioned on the same item in the same database.
    
         The Dbc::cmp() 
            
            
                method either returns a non-zero error value or throws an
                exception that encapsulates a non-zero error value on
                failure, and returns 0 on success.
            
        
    
The other_cursor parameter references another cursor handle that will be used as the comparator.
If the call is successful and both cursors are positioned on the same item, result is set to zero. If the call is successful but the cursors are not positioned on the same item, result is set to a non-zero value. If the call is unsuccessful, the value of result should be ignored.
                         The Dbc::cmp() 
            
            
                method may fail and throw a DbException 
                exception, encapsulating one of the following non-zero errors, or return one
                of the following non-zero errors: