partition « STL Algorithms Modifying sequence operations « C++ Tutorial






24.6.partition
24.6.1.Use stable_partition and partition
24.6.2.use stable_partition on the vecCopy - maintains relative order