#pragma once #include #include namespace pymol { /** * C++ 23's std::to_underlying * @param e The enum to convert * @return The underlying type of the enum */ template constexpr std::underlying_type_t to_underlying(EnumT e) noexcept { return static_cast>(e); } } // namespace pymol