.. _integral: ************** meta::integral ************** Defined in header ````. .. code-block:: cpp template concept integral = std::is_integral::value; Pre-C++20 implementation of the :concept:`integral` concept. ---- Concept emulation ================= .. code-block:: cpp namespace mgs { namespace meta { template struct is_integral { /* ... */ }; template constexpr auto is_integral_v = is_integral::value; template >> using integral = T; } // namespace meta } // namespace mgs Example ======= .. code-block:: cpp #include using namespace mgs::meta; static_assert(is_integral_v, ""); static_assert(!is_integral_v, "");