fork download
  1. #include <iostream>
  2. #include <algorithm>
  3. #include <vector>
  4. using namespace std;
  5.  
  6. int main() {
  7. vector<int> myInts;
  8. auto anIter = std::remove(myInts.begin(),myInts.end(),5);
  9. if (anIter == myInts.end())
  10. std::cout << "iterator = myInts.end()";
  11.  
  12.  
  13. }
Success #stdin #stdout 0s 3340KB
stdin
Standard input is empty
stdout
iterator = myInts.end()