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