std::experi...Destructible(3)
π NAME π
std::experimental::ranges::Destructible β std::experimental::ranges::Destructible
Okay bestie, real talk: same name on both sides of the dash, and we're keeping it. This is the C++ Standard Libary page for the Destructible concept, man page section 3, and the vibe is very "niche C++ template lore but make it cute." π
π¦ Synopsis π¦
Defined in header <experimental/ranges/concepts>
template< class T >
(ranges TS)
concept bool Destructible = std::is_nothrow_destructible<T>::value;
The concept Destructible covers all types whose instances can safely be destroyed at the end of their lifetime (including reference types). Reference types included, periodt. π
There need not be any subsumption relationship between Destructible<T> and std::is_nothrow_destructible<T>::value. That's it β no extra subsumption lore, no cap. π
π‘ Notes π‘
Unlike the Destructible named requirement in the main C++ standard, Destructible requires the destructor to be noexcept(true), not merely non-throwing when invoked, and allows reference types and array types. This is the glow-up difference, bestie. β¨
π See also π
The original see-also column is a little feral, so here's the whole squad, no details left behind π«Ά:
is_destructibleis_trivially_destructibleis_nothrow_destructible- the text
checks if a type has a non-deleted destructor (C++11)(class template)(C++11)(C++11)
Yes, those markers are doing their own thing. We respect the chaos. π
Source check π«Ά: this page comes from http://cppreference.com, dated 2024.06.10, with the footer tag std::experi...Destructible(3). Bye bestie, go destroy safely π
β¨
π¦ where this page comes from
- nixpkgs unstable: stdman 2024.07.05
- opensuse-leap 16.0: stdman 2024.07.05-bp160.1.9 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms