Function Option.toHash

If T has a toHash() method, Option defines toHash() which returns T.toHash() if it is set or 0 otherwise.

size_t toHash() const;

size_t toHash() const;

Returns

Hash value.