std::destructible(3)

πŸ“¦
version 2024.07.05 Β· 3 versions
, in nixpkgs unstable, opensuse-leap 16.0

πŸ’– std::destructible(3) πŸ’–

okay bestie, welcome to the std::destructible page from the C++ Standard Libary β€” yes, that spelling is staying, we respect the header’s main character energy πŸ’…βœ¨


🌸 NAME 🌸

std::destructible - std::destructible

that’s the whole NAME line and honestly she’s serving minimalist icon behavior πŸŽ€


✨ Synopsis ✨

Defined in header <concepts> 🫢

template< class T >                                        (since C++20)
concept destructible = std::is_nothrow_destructible_v<T>;

The concept destructible specifies the concept of all types whose instances can safely be destroyed at the end of their lifetime β€” including reference types πŸ’–βœ¨


πŸ¦‹ Notes πŸ¦‹

Unlike the Destructible named requirement, std::destructible requires the destructor to be noexcept(true), not merely non-throwing when invoked 😌 and it allows reference types and array types. no cap, that distinction is the whole plot πŸ”₯


πŸ‘‘ See also πŸ‘‘

  • is_destructible
  • is_trivially_destructible
  • is_nothrow_destructible β€” checks if a type has a non-deleted destructor
  • markers in the original block: (C++11), (C++11), (C++11), (class template) 🌈

all the little reference crumbs are here, bestie β€” nothing skipped, periodt πŸ’…


source: http://cppreference.com Β· version/date: 2024.06.10 Β· page: std::destructible(3) β€” mwah πŸ’‹βœ¨
πŸ“¦ where this page comes from