Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for (auto it = std::begin(foo); it!=std::end(foo); ++it){
- auto x = it->Some_member;
- // Note, the check usually uses the field would add to the new container.
- if(f(x) && g(x)){
- bar.emplace_back(x);
- }
- }
Add Comment
Please, Sign In to add comment