13 bool check(
const Ts &...
x)
override {
15 for (
size_t i = 0; i != N; i++) {
Base class for all automation conditions.
StringRef is a reference to a string owned by something else.
Base-class for all selects.
StringRef current_option() const
Return the currently selected option, or empty StringRef if no state.
SelectIsCondition(Select *parent, std::function< bool(const StringRef &, const Ts &...)> &&f)
bool check(const Ts &...x) override
std::function< bool(const StringRef &, const Ts &...)> f_
bool check(const Ts &...x) override
const char *const * option_list_
SelectIsCondition(Select *parent, const char *const *option_list)