# C++ named requirements: Destructible

> C++ Atlas: `cppatlas.com/w/cpp/named_req/Destructible` | Source: https://en.cppreference.com/w/cpp/named_req/Destructible | Domain: Named Requirements | Standards: C++11, C++20

Specifies that an instance of the type can be destructed.

## Official Specification Summary (cppreference)

Specifies that an instance of the type can be destructed.

### Requirements

The type `T` satisfies *Destructible* if

Given

- `u`, an expression of type `T`.

The following expressions must be valid and have their specified effects.

| Expression | Post-conditions |
| --- | --- |
| `u.~T()` | All resources owned by `u` are reclaimed, no exceptions are thrown. |

### Notes

Destructors are called implicitly at the end of object lifetime such as when leaving scope or by the delete-expression. Explicit destructor call as shown in the type requirement table is rare.

Thanks to pseudo destructor call, all scalar types meet the requirement of *Destructible*, while array types and reference types do not. Note that `std::is_destructible` allows arrays and reference types.

### See also

- [`is_destructible`](https://en.cppreference.com/w/cpp/types/is_destructible) (C++11), [`is_trivially_destructible`](https://en.cppreference.com/w/cpp/types/is_destructible) (C++11), [`is_nothrow_destructible`](https://en.cppreference.com/w/cpp/types/is_destructible) (C++11): checks if a type has a non-deleted destructor (class template)
- [`destructible`](https://en.cppreference.com/w/cpp/concepts/destructible) (C++20): specifies that an object of the type can be destroyed (concept)

---
Attribution: content from https://en.cppreference.com/w/cpp/named_req/Destructible (cppreference.com), licensed under CC-BY-SA 3.0 and GFDL. Modified: converted to markdown, study notes added. Offline snapshot of 9 February 2025.