42 #ifndef COMPARE_ELEMENT_INDEXES_H
43 #define COMPARE_ELEMENT_INDEXES_H
49 namespace AbstractLinAlgPack {
59 template<
class T_Element>
61 :
public std::unary_function< T_Element, typename T_Element::index_type >
63 bool operator()(
const T_Element& ele1,
const T_Element& ele2) {
64 return ele1.index() < ele2.index();
67 return i < ele2.index();
70 return ele1.index() < i;
75 template<
class T_Element>
77 :
public std::unary_function< T_Element, typename T_Element::index_type >
83 return ele.index() ==
i_;
95 #endif // COMPARE_ELEMENT_INDEXES_H
bool operator()(const T_Element &ele)
RTOp_index_type index_type
bool operator()(typename T_Element::index_type i, const T_Element &ele2)
compare_element_indexes_equal_to()
ele1.index() < ele2.index()
bool operator()(const T_Element &ele1, typename T_Element::index_type i)
bool operator()(const T_Element &ele1, const T_Element &ele2)
compare_element_indexes_equal_to(typename T_Element::index_type i)