5 #include "Mountain/core.hpp" 35 concept
EntryT = std::is_base_of_v<Entry, T>;
38 template <
class T,
class U>
47 concept
EntityT = std::is_base_of_v<Entity, T>;
57 std::formatter<std::remove_cvref_t<T>>().format(v, ctx);
62 concept
ExceptionT = std::is_base_of_v<std::exception, T>;
68 template <
typename From,
typename To>
69 concept ConvertibleToT = std::convertible_to<From, To>;
73 concept
ColorT = std::is_same_v<Color, T> || std::is_same_v<ColorHsva, T>;
84 concept EnumT = std::is_enum_v<T>;
87 concept EffectT = std::is_base_of_v<Effect, T>;
concept ComponentT
Concept that forces a type to be a child of Component.
concept EntityT
Concept that forces a type to be a child of Entity.
concept EntryT
A class satisfies the EntryT concept if it is derived of Entry.
concept PointerT
Concept that forces a type to be a raw pointer.
concept IsTSameAsU
Concept that forces a class to be same as the others.
concept FunctionT
Concept that forces a type to be a function.
concept IntegralT
Concept that forces a type to be of an integral type.
concept FormattableT
The Formattable concept requires a type to be formattable.
concept ExceptionT
A class satisfies the ExceptionT concept if it is derived of Exception.
concept ColorT
Concept that forces a type to be a color, e.g. either Color or ColorHsva.
concept LoadableResourceT
A class satisfies the LoadableResourceT concept if it is derived of Resource and is not the Font clas...
Contains useful general-use concepts.
concept ResourceT
A class satisfies the ResourceT concept if it is derived of Resource.
Contains all declarations of the Mountain Framework.