carl  24.04
Computer ARithmetic Library
carl::hash< T, mayBeNull > Struct Template Reference

Alternative specialization of std::hash for pointer types. More...

#include <pointerOperations.h>

Public Member Functions

bool operator() (const T &lhs, const T &rhs) const
 

Data Fields

std::hash< T > _hash
 

Detailed Description

template<typename T, bool mayBeNull = true>
struct carl::hash< T, mayBeNull >

Alternative specialization of std::hash for pointer types.

In case the pointer is not a nullptr, we return the hash of the object it points to.

Definition at line 164 of file pointerOperations.h.

Member Function Documentation

◆ operator()()

template<typename T , bool mayBeNull = true>
bool carl::hash< T, mayBeNull >::operator() ( const T &  lhs,
const T &  rhs 
) const
inline

Definition at line 166 of file pointerOperations.h.

Field Documentation

◆ _hash

template<typename T , bool mayBeNull = true>
std::hash<T> carl::hash< T, mayBeNull >::_hash

Definition at line 165 of file pointerOperations.h.


The documentation for this struct was generated from the following file: