Advertisement
hnOsmium0001

Untitled

Apr 22nd, 2021
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. struct GraphUpdate_Success {};
  2. struct GraphUpdate_NoWorkToDo {};
  3. struct GraphUpdate_UnsatisfiedDependencies {
  4. struct Elm { size_t Idx; int FulfilleDependencies; };
  5. std::vector<Elm> UnsatisfiedNodes;
  6. };
  7. struct GraphUpdate_UnreachableNodes {
  8. std::vector<size_t> UnreachableNodes;
  9. };
  10.  
  11. std::variant<
  12. GraphUpdate_Success,
  13. GraphUpdate_NoWorkToDo,
  14. GraphUpdate_UnsatisfiedDependencies,
  15. GraphUpdate_UnreachableNodes>
  16. UpdateGraph();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement