MCPcopy Create free account
hub / github.com/comaps/comaps / IsActiveAny

Function IsActiveAny

3party/opening_hours/rules_evaluation.cpp:320–329  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

318
319template <typename T>
320bool IsActiveAny(std::vector<T> const & selectors, std::tm const & date)
321{
322 for (auto const & selector : selectors)
323 {
324 if (IsActive(selector, date))
325 return true;
326 }
327
328 return selectors.empty();
329}
330
331bool IsActiveAny(Timespan const & span, std::tm const & time) { return IsActive(span, time); }
332

Callers 2

IsDayActiveFunction · 0.85
MakeActiveResultFunction · 0.85

Calls 2

IsActiveFunction · 0.70
emptyMethod · 0.45

Tested by

no test coverage detected