Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class myObj;
- class objSet {
- vector<myObj> objs;
- }
- void example() {
- vector<objSet> sets = getSets();
- for (const objSet& v : sets) {
- std::for_each(v.objs, [v](){
- doStuff(v);
- });
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement