/*============================================================================= Copyright (c) 2011-2014 Bolero MURAKAMI https://github.com/bolero-MURAKAMI/Sprout Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) =============================================================================*/ #ifndef SPROUT_DARKROOM_ACCESS_ACCESS_HPP #define SPROUT_DARKROOM_ACCESS_ACCESS_HPP #include #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