Files
cppdraft_translate/cppdraft/concept/destructible.md
2025-10-25 03:02:53 +03:00

1.4 KiB
Raw Permalink Blame History

[concept.destructible]

18 Concepts library [concepts]

18.4.10 Concept destructible [concept.destructible]

1

#

The destructible concept specifies properties of all types, instances of which can be destroyed at the end of their lifetime, or reference types.

🔗

template<class T> concept [destructible](#concept:destructible "18.4.10Concept destructible[concept.destructible]") = [is_nothrow_destructible_v](meta.type.synop#lib:is_nothrow_destructible_v "21.3.3Header <type_­traits> synopsis[meta.type.synop]")<T>;

2

#

[Note 1:

Unlike the Cpp17Destructible requirements (Table 35), this concept forbids destructors that are potentially throwing, even if a particular invocation of the destructor does not actually throw.

— end note]