| 123456789101112131415161718 |
- #pragma once
- namespace matcher {
- template <typename Container>
- struct any_in_t {
- Container options;
- };
-
- template <typename T, typename Container>
- bool operator==(T const & t, any_in_t<Container> const & of) {
- return std::find(of.options.begin(), of.options.end(), t) != of.options.end();
- }
-
- template <typename Container>
- any_in_t<Container> any_in(Container && args) {
- return {args};
- }
- }
|