libzypp  13.10.6
zypp::CompareBy< _Tp, _Compare > Struct Template Reference

Functor to compare two elements by Rel based on a general _Compare functor. More...

#include <RelCompare.h>

Inheritance diagram for zypp::CompareBy< _Tp, _Compare >:

Public Member Functions

 CompareBy (Rel op_r)
 
bool operator() (const _Tp &lhs, const _Tp &rhs) const
 

Public Attributes

Rel _op
 

Detailed Description

template<class _Tp, class _Compare = Compare<_Tp>>
struct zypp::CompareBy< _Tp, _Compare >

Functor to compare two elements by Rel based on a general _Compare functor.

Expects _Compare to be suitable for use in compareByRel. Defaults to Compare<_Tp>.

Definition at line 159 of file RelCompare.h.

Constructor & Destructor Documentation

template<class _Tp , class _Compare = Compare<_Tp>>
zypp::CompareBy< _Tp, _Compare >::CompareBy ( Rel  op_r)
inline

Definition at line 161 of file RelCompare.h.

Member Function Documentation

template<class _Tp , class _Compare = Compare<_Tp>>
bool zypp::CompareBy< _Tp, _Compare >::operator() ( const _Tp &  lhs,
const _Tp &  rhs 
) const
inline

Definition at line 165 of file RelCompare.h.

Member Data Documentation

template<class _Tp , class _Compare = Compare<_Tp>>
Rel zypp::CompareBy< _Tp, _Compare >::_op

Definition at line 168 of file RelCompare.h.


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