#ifndef MIGRAPH_GUARD_MIGRAPHLIB_RANGES_HPP #define MIGRAPH_GUARD_MIGRAPHLIB_RANGES_HPP #include namespace migraph { template bool contains(C&& c, T&& x) { return c.find(x) != c.end(); } template void copy(Range&& r, Iterator it) { std::copy(r.begin(), r.end(), it); } } // namespace migraph #endif