From 3fca2908808b4c88f3d63235219d2c7af38db167 Mon Sep 17 00:00:00 2001 From: Hugo van der Merwe <17109322+hugovdm@users.noreply.github.com> Date: Fri, 19 Jun 2020 14:10:17 +0200 Subject: [PATCH] ICU-21174 Add a const version of MaybeStackVector::getAlias(). (Also makes a tiny tweak to appendAll() documentation.) --- icu4c/source/common/cmemory.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/icu4c/source/common/cmemory.h b/icu4c/source/common/cmemory.h index 8d60442021..e84517e74d 100644 --- a/icu4c/source/common/cmemory.h +++ b/icu4c/source/common/cmemory.h @@ -779,6 +779,10 @@ public: 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 @@ public: } /** - * 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++) {