File tree 2 files changed +10
-0
lines changed
2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -223,7 +223,12 @@ class RepeatedField final
223
223
void ExtractSubrange (int start, int num, Element* elements);
224
224
225
225
ABSL_ATTRIBUTE_REINITIALIZES void Clear ();
226
+
227
+ // Appends the elements from `other` after this instance.
228
+ // The end result length will be `other.size() + this->size()`.
226
229
void MergeFrom (const RepeatedField& other);
230
+
231
+ // Replaces the contents with a copy of the elements from `other`.
227
232
ABSL_ATTRIBUTE_REINITIALIZES void CopyFrom (const RepeatedField& other);
228
233
229
234
// Replaces the contents with RepeatedField(begin, end).
Original file line number Diff line number Diff line change @@ -1044,7 +1044,12 @@ class RepeatedPtrField final : private internal::RepeatedPtrFieldBase {
1044
1044
void DeleteSubrange (int start, int num);
1045
1045
1046
1046
ABSL_ATTRIBUTE_REINITIALIZES void Clear ();
1047
+
1048
+ // Appends the elements from `other` after this instance.
1049
+ // The end result length will be `other.size() + this->size()`.
1047
1050
void MergeFrom (const RepeatedPtrField& other);
1051
+
1052
+ // Replaces the contents with a copy of the elements from `other`.
1048
1053
ABSL_ATTRIBUTE_REINITIALIZES void CopyFrom (const RepeatedPtrField& other);
1049
1054
1050
1055
// Replaces the contents with RepeatedPtrField(begin, end).
You can’t perform that action at this time.
0 commit comments