|
|
@ -1185,10 +1185,8 @@ class RepeatedPtrField final : private internal::RepeatedPtrFieldBase { |
|
|
|
// Gets the arena on which this RepeatedPtrField stores its elements.
|
|
|
|
// Gets the arena on which this RepeatedPtrField stores its elements.
|
|
|
|
inline Arena* GetArena(); |
|
|
|
inline Arena* GetArena(); |
|
|
|
|
|
|
|
|
|
|
|
#ifndef PROTOBUF_FUTURE_REMOVE_CONST_REPEATEDFIELD_GETARENA_API |
|
|
|
|
|
|
|
ABSL_DEPRECATED("This will be removed in a future release") |
|
|
|
ABSL_DEPRECATED("This will be removed in a future release") |
|
|
|
inline Arena* GetArena() const; |
|
|
|
inline Arena* GetArena() const; |
|
|
|
#endif // !PROTOBUF_FUTURE_REMOVE_CONST_REPEATEDFIELD_GETARENA_API
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// For internal use only.
|
|
|
|
// For internal use only.
|
|
|
|
//
|
|
|
|
//
|
|
|
@ -1554,12 +1552,10 @@ inline Arena* RepeatedPtrField<Element>::GetArena() { |
|
|
|
return RepeatedPtrFieldBase::GetArena(); |
|
|
|
return RepeatedPtrFieldBase::GetArena(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
#ifndef PROTOBUF_FUTURE_REMOVE_CONST_REPEATEDFIELD_GETARENA_API |
|
|
|
|
|
|
|
template <typename Element> |
|
|
|
template <typename Element> |
|
|
|
inline Arena* RepeatedPtrField<Element>::GetArena() const { |
|
|
|
inline Arena* RepeatedPtrField<Element>::GetArena() const { |
|
|
|
return RepeatedPtrFieldBase::GetArena(); |
|
|
|
return RepeatedPtrFieldBase::GetArena(); |
|
|
|
} |
|
|
|
} |
|
|
|
#endif // !PROTOBUF_FUTURE_REMOVE_CONST_REPEATEDFIELD_GETARENA_API
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
template <typename Element> |
|
|
|
template <typename Element> |
|
|
|
inline Arena* RepeatedPtrField<Element>::GetOwningArena() const { |
|
|
|
inline Arena* RepeatedPtrField<Element>::GetOwningArena() const { |
|
|
|