IceShard 1
A personal game engine project, with development focused on 2D/2.5D games.
Loading...
Searching...
No Matches
ice::BoolType Concept Reference

#include <ice/concept/enum_bools.hxx>

Concept definition

template<typename T>
concept BoolType = BoolLogic<T>::IsEnabled && requires(T) {
{ T::Off } -> std::convertible_to<T>;
{ T::On } -> std::convertible_to<T>;
static_cast<std::underlying_type_t<T>>(T::Off) == 0;
static_cast<std::underlying_type_t<T>>(T::On) == 1;
}
Definition enum_bools.hxx:18
static constexpr bool IsEnabled
Definition enum_bools.hxx:14