| 318 | |
| 319 | template <typename T> |
| 320 | bool 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 | |
| 331 | bool IsActiveAny(Timespan const & span, std::tm const & time) { return IsActive(span, time); } |
| 332 |
no test coverage detected