| 123456789101112131415161718 |
- //
- // 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 {
- template <typename... Ts> bool any_of(std::string_view value, Ts const&... rest) {
- return ((value == rest) || ...);
- }
- }
|