[indirect.dtor] (original) (raw)

20 Memory management library [mem]

20.4 Types for composite class design [mem.composite.types]

20.4.1 Class template indirect [indirect]

20.4.1.4 Destructor [indirect.dtor]

๐Ÿ”—

constexpr ~indirect();

1

#

Mandates: T is a complete type.

2

#

Effects: If *this is not valueless, destroys the owned object using allocator_traits<Allocator>โ€‹::โ€‹destroy and then the storage is deallocated.