#pragma once #include #include #include #include #include namespace mbgl { namespace util { template >> constexpr std::array convert(const std::array& from) { std::array to{{}}; std::copy(std::begin(from), std::end(from), std::begin(to)); return to; } template >> constexpr std::array cast(const std::array& from) { std::array to{{}}; std::transform(std::begin(from), std::end(from), std::begin(to), [](From x) { return static_cast(x); }); return to; } } // namespace util } // namespace mbgl