Skip to content

Commit a54cb45

Browse files
Abseil Teamcopybara-github
authored andcommitted
Expose typed releasers of externally appended memory.
PiperOrigin-RevId: 813913805 Change-Id: I4e8596697627c769619c041832a6f26dec2afd64
1 parent efee2e5 commit a54cb45

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

absl/strings/internal/cord_internal.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -381,6 +381,8 @@ struct CordRepExternalImpl
381381
this->releaser_invoker = &Release;
382382
}
383383

384+
const Releaser* releaser() const { return &this->template get<0>(); }
385+
384386
~CordRepExternalImpl() {
385387
InvokeReleaser(Rank1{}, std::move(this->template get<0>()),
386388
absl::string_view(base, length));

0 commit comments

Comments
 (0)