#ifndef SPROUT_TUPLE_STD_ARRAY_HPP #define SPROUT_TUPLE_STD_ARRAY_HPP #include #include #include #include #include #include namespace sprout_adl { // // tuple_get // template inline SPROUT_CONSTEXPR T& tuple_get(std::array& t) SPROUT_NOEXCEPT { static_assert(I < N, "tuple_get: index out of range"); return t[I]; } template inline SPROUT_CONSTEXPR T const& tuple_get(std::array const& t) SPROUT_NOEXCEPT { static_assert(I < N, "tuple_get: index out of range"); return t[I]; } template inline SPROUT_CONSTEXPR T&& tuple_get(std::array&& t) SPROUT_NOEXCEPT { return sprout::move(sprout::tuples::get(t)); } } // namespace sprout_adl #endif // #ifndef SPROUT_TUPLE_STD_ARRAY_HPP