| 1234567891011121314151617181920212223 |
- //
- // any_of.h
- // string-utils
- //
- // Created by Sam Jaffe on 2/13/21.
- // Copyright © 2021 Sam Jaffe. All rights reserved.
- //
- #pragma once
- #include <string>
- namespace string_utils {
- bool any_of(std::string const &) { return false; }
- template <typename T, typename... Ts>
- bool any_of(std::string const &value, T && in, Ts &&...rest) {
- return value == std::forward<T>(in) ||
- any_of(value, std::forward<Ts>(rest)...);
- }
- }
|