Converts a "less than" predicate into a "less than or equal" predicate.
More...
#include <CSCompositeSkipList.h>
List of all members.
Public Member Functions |
| | LessEqualT (const Pr &pred) |
| | Custom constructor.
|
| bool | operator() (const T &a, const T &b) const |
| | Less than or equal predicate activation.
|
Private Member Functions |
|
| LessEqualT () |
| | Default constructor not accessible.
|
Private Attributes |
|
Pr | pred |
| | Original predicate.
|
Detailed Description
template<class T, class Pr>
class LessEqualT< T, Pr >
Converts a "less than" predicate into a "less than or equal" predicate.
- Template Parameters:
-
| T | Type of arguments in predicate. |
| Pr | Predicate type. |
Constructor & Destructor Documentation
template<class T , class Pr >
Custom constructor.
- Parameters:
-
| pred | "Less than" predicate to convert. |
Member Function Documentation
template<class T , class Pr >
| bool LessEqualT< T, Pr >::operator() |
( |
const T & |
a, |
|
|
const T & |
b |
|
) |
| const [inline] |
Less than or equal predicate activation.
- Parameters:
-
| a | First argument of predicate. |
| b | Second argument of predicate. |
- Returns:
- true if a<=b.
The documentation for this class was generated from the following file: