SHARE
TWEET

for_each on a COM IEnumXxx interface

a guest Feb 26th, 2012 20 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. IEnumUnkPtr pEnumUnk;
  2. // ...something that fills in pEnumUnk...
  3. MagicThing m(pEnumUnk);
  4. std::for_each(m.begin(), m.end(), DoSomethingWithUnk);
RAW Paste Data
Top