.. _destructible: ****************** meta::destructible ****************** Defined in header ````. .. code-block:: cpp template concept destructible = std::is_nothrow_destructible_v; Pre-C++20 implementation of the :concept:`destructible` concept. ---- Concept emulation ================= .. code-block:: cpp namespace mgs { namespace meta { template struct is_destructible { /* ... */ }; template constexpr auto is_destructible_v = is_destructible::value; template >> using destructible = T; } // namespace meta } // namespace mgs Example ======= .. code-block:: cpp #include using namespace mgs::meta; namespace { struct A { ~A() noexcept(false) {}; }; } static_assert(is_destructible_v, ""); static_assert(!is_destructible_v, "");