SHARE
TWEET

for_each on a COM IEnumXxx interface

a guest Feb 26th, 2012 19 Never
  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