Files
2025-10-25 03:02:53 +03:00

30 lines
786 B
Markdown
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

[indirect.dtor]
# 20 Memory management library [[mem]](./#mem)
## 20.4 Types for composite class design [[mem.composite.types]](mem.composite.types#indirect.dtor)
### 20.4.1 Class template indirect [[indirect]](indirect#dtor)
#### 20.4.1.4 Destructor [indirect.dtor]
[🔗](#lib:indirect,destructor)
`constexpr ~indirect();
`
[1](#1)
[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/memory.tex#L6338)
*Mandates*: T is a complete type[.](#1.sentence-1)
[2](#2)
[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/memory.tex#L6342)
*Effects*: If *this is not valueless,
destroys the owned object
using allocator_traits<Allocator>::destroy and
then the storage is deallocated[.](#2.sentence-1)