Browse Source

operator< for stateaction pairs

Former-commit-id: d69660a770
tempestpy_adaptions
sjunges 9 years ago
parent
commit
bd7fc0b341
  1. 5
      src/storage/StateActionPair.h

5
src/storage/StateActionPair.h

@ -27,7 +27,10 @@ namespace storm {
friend bool operator!=(StateActionPair const& p1, StateActionPair const& p2) {
return p1.stateActionPair != p2.stateActionPair;
}
friend bool operator<(StateActionPair const& p1, StateActionPair const& p2) {
return p1.getState() < p2.getState() || (p1.getState() == p2.getState() && p1.getAction() < p2.getAction());
}
};
}

Loading…
Cancel
Save