game_launcher 1.1.0
Modern Linux game launcher with Steam / Proton / Wine integration
Loading...
Searching...
No Matches
safe_enum_cast.h File Reference
#include <type_traits>
Include dependency graph for safe_enum_cast.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  core

Functions

template<typename E>
constexpr E core::safeEnumCast (int v, E def, int kMax) noexcept
 Bounds-checked cast from int to enum.