title: What is the difference between std::stable_partition() and std::partition()?
body: <pre><code>stable_partition(vect.begin(), vect.end(), [](int x) { return x % 2 == 0; });
  
  partition(vect.begin(), vect.end(), [](int x) {
    return x % 2 == 0;
  });
  </code></pre>
  
  <p>Above code is to explain difference between two.</p>