ICU-21174 Add a const version of MaybeStackVector::getAlias().
(Also makes a tiny tweak to appendAll() documentation.)
diff --git a/icu4c/source/common/cmemory.h b/icu4c/source/common/cmemory.h
index 8d60442..e84517e 100644
--- a/icu4c/source/common/cmemory.h
+++ b/icu4c/source/common/cmemory.h
@@ -779,6 +779,10 @@
return this->fPool.getAlias();
}
+ const T *const *getAlias() const {
+ return this->fPool.getAlias();
+ }
+
/**
* Array item access (read-only).
* No index bounds check.
@@ -800,7 +804,7 @@
}
/**
- * Append all the items from another MaybeStackVector to this one.
+ * Append copies of all the items from another MaybeStackVector to this one.
*/
void appendAll(const MaybeStackVector& other, UErrorCode& status) {
for (int32_t i = 0; i < other.fCount; i++) {