fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. // your code goes here
  6. return 0;
  7. }
  8.  
  9. template <class ED>
  10. struct EdgeData {
  11. EdgeData(int indexTo, const ED& edgeData) : indexTo(indexTo), edgeData(edgeData) {}
  12. EdgeData(int indexTo, ED&& edgeData) : indexTo(indexTo), edgeData(move(edgeData)) {}
  13. bool operator<(const EdgeData<ED>& other) { return indexTo < other.indexTo; }
  14. int indexTo;
  15. ED edgeData;
  16. };
  17. /*
  18. template <class ED>
  19. struct EdgeData {
  20.   EdgeData(int indexTo, const ED& edgeData) : indexTo(indexTo), edgeData(edgeData) {}
  21.   EdgeData(int indexTo, ED&& edgeData) : indexTo(indexTo), edgeData(move(edgeData)) {}
  22.   int indexTo;
  23.   ED edgeData;
  24. };
  25. template <class ED>
  26. bool operator<(const EdgeData<ED>& l, const EdgeData<ED>& r) { return l.indexTo < r.indexTo; }*/
Success #stdin #stdout 0s 15240KB
stdin
Standard input is empty
stdout
Standard output is empty