ewmscp  ..
Public Member Functions | List of all members
waitQueues::itemComparator< T, ascending > Class Template Reference

#include <waitQueues.h>

Public Member Functions

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

Detailed Description

template<typename T, bool ascending = true>
class waitQueues::itemComparator< T, ascending >

Definition at line 118 of file waitQueues.h.

Member Function Documentation

◆ operator()()

template<typename T , bool ascending = true>
bool waitQueues::itemComparator< T, ascending >::operator() ( const T *const &  lhs,
const T *const &  rhs 
) const
inline

Definition at line 120 of file waitQueues.h.

120  {
121  if (lhs == nullptr) { // ensure nullptrs always go at the end of the container
122  return false;
123  }
124  if (rhs == nullptr) {
125  return true;
126  }
127  return ascending ? (*lhs < *rhs) : (*rhs < *lhs);
128  }

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