M
Marko.Cain.23
How can I copy elements from one STL container to another STL container
if a condition is met and if it find an element fails that condition,
it stops the copying?
I can't use the original copy<> algorithm since it does not take a
binary operation.
And I don't think I can use transform either since it does not stop if
the binary operation return false.
Please correct me if I am wrong or any ideas to my problem.
if a condition is met and if it find an element fails that condition,
it stops the copying?
I can't use the original copy<> algorithm since it does not take a
binary operation.
And I don't think I can use transform either since it does not stop if
the binary operation return false.
Please correct me if I am wrong or any ideas to my problem.