Hi,

I've created a patch for PdfArray to have the functions erase() and insert() 
return iterators (like the functions on the underlying vector). This is needed 
if you have to insert or delete items while enumerating the array:

PdfArray::iterator it = pdfArray.begin();
while (it != pdfArray.end())
{
  if (some_condition)
    it = pdfArray.erase(it);
  else
    ++it;
}

Best Regards,
Thomas Barnekov

Attachment: PoDoFo PdfArray iterator patch.patch
Description: PoDoFo PdfArray iterator patch.patch

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Podofo-users mailing list
Podofo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/podofo-users

Reply via email to