30 #ifndef SEASTAR_MODULE
31 #include <type_traits>
34 #include <seastar/util/modules.hh>
42 static_assert(std::is_enum_v<T>,
"must be an enum");
44 std::size_t operator()(
const T& e)
const {
45 using utype = std::underlying_type_t<T>;
46 return std::hash<utype>()(
static_cast<utype
>(e));
Seastar API namespace.
Definition: abort_on_ebadf.hh:26