#ifndef SPROUT_DARKROOM_ACCESS_ACCESS_HPP #define SPROUT_DARKROOM_ACCESS_ACCESS_HPP #include #include #include #include namespace sprout { namespace darkroom { namespace access { // // element // template struct element : public sprout::tuples::tuple_element {}; // // size // template struct size : public sprout::tuples::tuple_size {}; // // unit // template struct unit : public sprout::darkroom::access::element<0, T> {}; // // get // template inline SPROUT_CONSTEXPR auto get(T&& t) SPROUT_NOEXCEPT_EXPR(SPROUT_NOEXCEPT_EXPR(sprout::tuples::get(sprout::forward(t)))) -> decltype(sprout::tuples::get(sprout::forward(t))) { return sprout::tuples::get(sprout::forward(t)); } } // namespace access } // namespace darkroom } // namespace sprout #endif // #ifndef SPROUT_DARKROOM_ACCESS_ACCESS_HPP