Rune Caster 1.0.0
Modern C++ Text Processing Framework
Loading...
Searching...
No Matches
rune_caster::spell_concept Concept Reference

Concept defining what makes a valid spell. More...

#include <spell_base.hpp>

Concept definition

template<typename T>
concept rune_caster::spell_concept = requires(T spell) {
typename T::input_type;
typename T::output_type;
{ spell.name() } -> std::convertible_to<std::string>;
{ spell.description() } -> std::convertible_to<std::string>;
requires std::invocable<T, typename T::input_type>;
requires std::same_as<
std::invoke_result_t<T, typename T::input_type>,
typename T::output_type
>;
}
Concept defining what makes a valid spell.

Detailed Description

Concept defining what makes a valid spell.

Definition at line 99 of file spell_base.hpp.