ORIGINAL
|
Forward declaration of hashable interface template. More...
#include <hash.h>
Public Member Functions | |
virtual u_integer | toHash () const noexcept |
Computes the hash of the object. | |
virtual bool | equals (const DERIVED &other) const noexcept |
Compares two objects for equality. | |
virtual | ~hashable ()=0 |
Virtual destructor. | |
Forward declaration of hashable interface template.
Interface for user-defined hashable types.
DERIVED | The derived class that inherits from hashable. |
DERIVED | The derived type (CRTP pattern) |
Provides default implementations for:
Usage Example:
|
pure virtualdefault |
Virtual destructor.
|
virtualnoexcept |
Compares two objects for equality.
other | The object to compare with |
Default implementation uses operator==
|
virtualnoexcept |
Computes the hash of the object.
Default implementation uses byte-wise hashing of object
Reimplemented in original::autoPtr< TYPE, DERIVED, DELETER >, original::autoPtr< asyncWrapper< TYPE >, strongPtr< asyncWrapper< TYPE >, DELETER >, DELETER >, original::autoPtr< asyncWrapper< void >, strongPtr< asyncWrapper< void >, DELETER >, DELETER >, original::autoPtr< original::filter< TYPE >, strongPtr< original::filter< TYPE >, DELETER >, DELETER >, original::autoPtr< TYPE, ownerPtr< TYPE, deleter< TYPE > >, deleter< TYPE > >, original::autoPtr< TYPE, strongPtr< TYPE, DELETER >, DELETER >, original::autoPtr< TYPE, weakPtr< TYPE, DELETER >, DELETER >, original::async::sharedFuture< TYPE >, original::async::sharedFuture< void >, original::pThread, original::thread, original::time::duration, original::time::point, and original::time::UTCTime.