Exemple #1
0
bool operator==(const Datum& a, const Datum& b) {
   return    a.tag()   == b.tag()
          && a.monat() == b.monat()
          && a.jahr()  == b.jahr();
}
Exemple #2
0
bool operator<(const Datum& a, const Datum& b) {
   return    a.jahr() < b.jahr()
      || (a.jahr() == b.jahr() && a.monat() < b.monat())
      || (a.jahr() == b.jahr()
          && a.monat() == b.monat() && a.tag() < b.tag());
}