protobuf 有关问题

protobuf 问题我想删下面listRT里的一个元素,求怎么删除message AA{......repeatedRType listRT 8}AA a

protobuf 问题
我想删下面listRT里的一个元素,求怎么删除
message AA
{
    ......
repeated  RType listRT = 8;
}
AA aa;
aa.mutable_listRT(nIndex)->?

[解决办法]
先调用 SwapElements(int, int)
再调用 RemoveLast()

之所以不支持直接erase,是考虑了性能问题。