libhatchet
Loading...
Searching...
No Matches
hxref.hpp File Reference

Go to the source code of this file.

Classes

class  hxref< T >

Functions

template<typename T>
hxhash_t hxkey_hash (const hxref< T > &ref_)

Detailed Description

An optional reference type.

Implements std::optional<T&>. See hxoptional for a std::optional<T> equivalent.

Function Documentation

◆ hxkey_hash()

template<typename T>
hxhash_t hxkey_hash ( const hxref< T > & ref_)

hxkey_hash(hxref<T>) - Returns the hash of the referenced value if engaged, otherwise 1u.

  • ref : The reference to hash.