1#ifndef COMMA_PROJECT_PRIORITY_PAIR_H
2#define COMMA_PROJECT_PRIORITY_PAIR_H
29template<
typename A,
typename B>
55 A
first()
const {
return _p.first; }
60 B
second()
const {
return _p.second; }
70 if (a._p.first > b._p.first)
return true;
71 if (a._p.first < b._p.first)
return false;
73 return a._p.second < b._p.second;
84 return (a._p.first == b._p.first) && (a._p.second == b._p.second);
Wrapper around the STL pair with custom 'less than' operator: as in the standard case,...
Definition: Priority_Pair.h:30
~Priority_Pair()=default
Destructor.
Priority_Pair(const A &a, const B &b)
Constructor.
Definition: Priority_Pair.h:44
friend bool operator==(const Priority_Pair &a, const Priority_Pair &b)
Operator 'equal'.
Definition: Priority_Pair.h:81
Priority_Pair()=default
Constructor.
friend bool operator<(const Priority_Pair &a, const Priority_Pair &b)
Operator 'less than'. It actually relies on the 'greater than' operator for the first elements and 'l...
Definition: Priority_Pair.h:69
B second() const
Accessor to the first element.
Definition: Priority_Pair.h:60
A first() const
Accessor to the first element.
Definition: Priority_Pair.h:55
Definition: Agglomerator.h:37