souffle  2.0.2-371-g6315b36
Public Member Functions
souffle::deref_less< T, C > Struct Template Reference

A functor comparing the dereferenced value of a pointer type utilizing a given comparator. More...

#include <FunctionalUtil.h>

Collaboration diagram for souffle::deref_less< T, C >:
Collaboration graph

Public Member Functions

bool operator() (const T *a, const T *b) const
 

Detailed Description

template<typename T, typename C = std::less<T>>
struct souffle::deref_less< T, C >

A functor comparing the dereferenced value of a pointer type utilizing a given comparator.

Its main use case are sets of non-null pointers which should be ordered according to the value addressed by the pointer.

Definition at line 42 of file FunctionalUtil.h.

Member Function Documentation

◆ operator()()

template<typename T , typename C = std::less<T>>
bool souffle::deref_less< T, C >::operator() ( const T *  a,
const T *  b 
) const
inline

Definition at line 49 of file FunctionalUtil.h.

52  {

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