I’ve got a vector<MyType> and would like another vector<MyType> containing only those MyTypes which fulfill some simple criteria, e.g. that some data member equals something. What’s the best way to solve this?
I’ve got a vector<MyType> and would like another vector<MyType> containing only those MyTypes which
Share
Use
copy_if: