rll/utility.h file

Namespaces

namespace rll
Contract-programming related functions and classes.

Functions

template <typename T, typename = std::enable_if_t<std::is_enum_v<T>>>
auto to_underlying(T t) →  auto constexpr noexcept
Converts an enumeration value to its underlying type.
void unreachable()
Informs the compiler that the current location is unreachable.

Defines

#define DECLARE_ENUM_FLAG(E)