uce may store to memory on destruction because
MemoryUnsafeDestructorClass&#39;s destructor may store to memory on destruction."
keywords: "_DestructorSafeContainer,protocol,swift,documentation"
root: "/v2.1"
---

<div class="intro-declaration"><code class="language-swift">protocol _DestructorSafeContainer</code></div>

<div class="discussion comment">
    <p>A container is destructor safe if whether it may store to memory on
destruction only depends on its type parameters.
For example, whether <code>Array&