partition « STL Algorithms Modifying sequence operations « C++






1.Use stable_partition and partition
2.separate even values from the odd ones - even comes first