/// Less operator, needed for maps bool operator<(const port<Alloc>& rhs) const { int n = node().compare(rhs.node()); if (n > 0) return true; if (n < 0) return false; if (id() < rhs.id()) return true; if (id() > rhs.id()) return false; if (creation() < rhs.creation()) return true; if (creation() > rhs.creation()) return false; return false; }
bool operator== (const port<Alloc>& t) const { return id() == t.id() && node() == t.node() && creation() == t.creation(); }