// 头文件中定义通用转换 namespace enum_util { template<typename E> constexpr std::underlying_type_t<E> to_int(E e) noexcept { return static_cast<std::underlying_type_t<E>>(e); } }
posted @ 2026-04-28 09:39 double64 阅读(7) 评论(0) 收藏 举报
刷新页面返回顶部
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。