.. _default_constructible: *************************** meta::default_constructible *************************** Defined in header ````. .. code-block:: cpp template concept default_constructible = meta::constructible_from; Pre-C++20 implementation of the :concept:`default_constructible` concept. ---- Concept emulation ================= .. code-block:: cpp namespace mgs { namespace meta { template struct is_default_constructible { /* ... */ }; template constexpr auto is_default_constructible_v = is_default_constructible::value; template >> using default_constructible = T; } // namespace meta } // namespace mgs Example ======= .. code-block:: cpp #include using namespace mgs::meta; struct non_default_constructible { non_default_constructible() = delete; }; static_assert(is_default_constructible_v>, ""); static_assert(is_default_constructible_v, ""); static_assert(!is_default_constructible_v, ""); See also ======== * :ref:`constructible_from`