stable_partition « STL Algorithms Modifying sequence operations « C++






1.Use stable_partition algorithms: preserving relative order in each group
2.Use stable_partition and partition