#ifndef SPROUT_ARRAY_TUPLE_HPP #define SPROUT_ARRAY_TUPLE_HPP #include #include #include #include #include namespace sprout { namespace tuples { // // get // template inline SPROUT_CONSTEXPR T& get(sprout::array& t) SPROUT_NOEXCEPT { static_assert(I < N, "get: index out of range"); return t[I]; } template inline SPROUT_CONSTEXPR T const& get(sprout::array const& t) SPROUT_NOEXCEPT { static_assert(I < N, "get: index out of range"); return t[I]; } template inline SPROUT_CONSTEXPR T&& get(sprout::array&& t) SPROUT_NOEXCEPT { return sprout::move(sprout::tuples::get(t)); } } // namespace tuples using sprout::tuples::get; } // namespace sprout namespace std { // // tuple_size // template struct tuple_size > : public std::integral_constant {}; // // tuple_element // template struct tuple_element > { public: static_assert(I < N, "tuple_element<>: index out of range"); typedef T type; }; } // namespace std #endif // #ifndef SPROUT_ARRAY_TUPLE_HPP