fork download
  1. #include <iostream>
  2. #include <algorithm>
  3.  
  4.  
  5. using namespace std;
  6.  
  7.  
  8. template<typename>
  9. struct VectorIterator {};
  10.  
  11. template<typename T>
  12. struct Array {
  13.  
  14. typedef VectorIterator<T> iterator;
  15.  
  16. iterator begin() const {
  17. return {};
  18. }
  19. iterator end() const {
  20. return {};
  21. }
  22. };
  23.  
  24.  
  25. template<typename T>
  26. void sort(VectorIterator<T>, VectorIterator<T>) {
  27. cout << "my sort" << endl;
  28. }
  29.  
  30.  
  31. int main() {
  32. Array<int> array;
  33. sort(array.begin(), array.end());
  34. }
  35.  
Success #stdin #stdout 0s 2852KB
stdin
Standard input is empty
stdout
my sort