SHARE
TWEET

Untitled

a guest Oct 21st, 2019 92 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. class myObj;
  2.  
  3. class objSet {
  4.     vector<myObj> objs;
  5. }
  6.  
  7. void example() {
  8.     vector<objSet> sets = getSets();
  9.  
  10.     for (const objSet& v : sets) {
  11.         std::for_each(v.objs, [v](){
  12.             doStuff(v);
  13.         });
  14.     }
  15. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top