42 #ifndef COMPARE_ELEMENT_INDEXES_H
43 #define COMPARE_ELEMENT_INDEXES_H
47 #include "AbstractLinAlgPack_Types.hpp"
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();
66 bool operator()(
typename T_Element::index_type i,
const T_Element& ele2) {
67 return i < ele2.index();
69 bool operator()(
const T_Element& ele1,
typename T_Element::index_type i) {
70 return ele1.index() < i;
75 template<
class T_Element>
77 :
public std::unary_function< T_Element, typename T_Element::index_type >
82 bool operator()(
const T_Element& ele) {
83 return ele.index() == i_;
86 typename T_Element::index_type i_;
95 #endif // COMPARE_ELEMENT_INDEXES_H
ele1.index() < ele2.index()