jaypipes
2009-10-05 17:33:07 UTC
Hi all,
I'm wondering what is the most efficient method to remove an element
from a Message's vector of repeated elements? I looked at the
RepeatedFieldPtr API but would appreciate some example code on how to
do this in the most efficient way. I gather from the API that the
underlying storage is a vector and so does not support efficient index-
based, random-access deletion from the vector. Is this correct?
Help is much appreciated,
Jay
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Protocol Buffers" group.
To post to this group, send email to ***@googlegroups.com
To unsubscribe from this group, send email to protobuf+***@googlegroups.com
For more options, visit this group at http://groups.google.com/group/protobuf?hl=en
-~----------~----~----~----~------~----~------~--~---
I'm wondering what is the most efficient method to remove an element
from a Message's vector of repeated elements? I looked at the
RepeatedFieldPtr API but would appreciate some example code on how to
do this in the most efficient way. I gather from the API that the
underlying storage is a vector and so does not support efficient index-
based, random-access deletion from the vector. Is this correct?
Help is much appreciated,
Jay
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Protocol Buffers" group.
To post to this group, send email to ***@googlegroups.com
To unsubscribe from this group, send email to protobuf+***@googlegroups.com
For more options, visit this group at http://groups.google.com/group/protobuf?hl=en
-~----------~----~----~----~------~----~------~--~---