Guest User

Untitled

a guest
Jan 22nd, 2019
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. for (auto it = std::begin(foo); it!=std::end(foo); ++it){
  2. auto x = it->Some_member;
  3. // Note, the check usually uses the field would add to the new container.
  4. if(f(x) && g(x)){
  5. bar.emplace_back(x);
  6. }
  7. }
Add Comment
Please, Sign In to add comment