|
|
@ -1183,6 +1183,9 @@ class RepeatedPtrField final : private internal::RepeatedPtrFieldBase { |
|
|
|
iterator erase(const_iterator first, const_iterator last); |
|
|
|
iterator erase(const_iterator first, const_iterator last); |
|
|
|
|
|
|
|
|
|
|
|
// Gets the arena on which this RepeatedPtrField stores its elements.
|
|
|
|
// Gets the arena on which this RepeatedPtrField stores its elements.
|
|
|
|
|
|
|
|
inline Arena* GetArena(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ABSL_DEPRECATED("This will be removed in a future release") |
|
|
|
inline Arena* GetArena() const; |
|
|
|
inline Arena* GetArena() const; |
|
|
|
|
|
|
|
|
|
|
|
// For internal use only.
|
|
|
|
// For internal use only.
|
|
|
@ -1544,6 +1547,11 @@ inline void RepeatedPtrField<Element>::SwapElements(int index1, int index2) { |
|
|
|
RepeatedPtrFieldBase::SwapElements(index1, index2); |
|
|
|
RepeatedPtrFieldBase::SwapElements(index1, index2); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
template <typename Element> |
|
|
|
|
|
|
|
inline Arena* RepeatedPtrField<Element>::GetArena() { |
|
|
|
|
|
|
|
return RepeatedPtrFieldBase::GetArena(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
template <typename Element> |
|
|
|
template <typename Element> |
|
|
|
inline Arena* RepeatedPtrField<Element>::GetArena() const { |
|
|
|
inline Arena* RepeatedPtrField<Element>::GetArena() const { |
|
|
|
return RepeatedPtrFieldBase::GetArena(); |
|
|
|
return RepeatedPtrFieldBase::GetArena(); |
|
|
|