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

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

#include <pointerOperations.h>

Public Member Functions

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

Data Fields

std::less< T > _less
 

Detailed Description

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

Alternative specialization of std::less for pointer types.

We consider two pointers equal, if they point to the same memory location or the objects they point to are equal. Note that the memory location may also be zero.

Definition at line 97 of file pointerOperations.h.

Member Function Documentation

◆ operator()()

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

Definition at line 99 of file pointerOperations.h.

Field Documentation

◆ _less

template<typename T , bool mayBeNull = true>
std::less<T> carl::less< T, mayBeNull >::_less

Definition at line 98 of file pointerOperations.h.


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