#include <core.hpp>
template<class T>
requires { T::value; } &&
requires {
requires std::convertible_to<T, std::remove_cvref_t<decltype(T::value)>>;
requires std::equality_comparable_with<T, std::remove_cvref_t<decltype(T::value)>>;
requires std::bool_constant<(T{} == T::value)>::value;
requires std::bool_constant<
(static_cast<std::remove_cvref_t<decltype(T::value)>>(T{}) == T::value)
>::value;
}
Concept to detect a type which is like a constexpr wrapper (i.e., it has a static member named value which is the same as the default value of the type, and which can be converted to the underlying type).