1 /*=============================================================================
2 Copyright (c) 2001-2011 Joel de Guzman
4 Distributed under the Boost Software License, Version 1.0. (See accompanying
5 file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 ==============================================================================*/
7 #if !defined(BOOST_FUSION_AT_IMPL_09242011_1744)
8 #define BOOST_FUSION_AT_IMPL_09242011_1744
10 #include <boost/fusion/support/config.hpp>
13 #include <boost/mpl/if.hpp>
14 #include <boost/fusion/support/detail/access.hpp>
15 #include <boost/type_traits/remove_const.hpp>
17 namespace boost { namespace fusion
27 struct at_impl<std_tuple_tag>
29 template <typename Sequence, typename N>
32 typedef typename remove_const<Sequence>::type seq_type;
33 typedef typename std::tuple_element<N::value, seq_type>::type element;
38 , typename fusion::detail::cref_result<element>::type
39 , typename fusion::detail::ref_result<element>::type
43 BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
47 return std::get<N::value>(seq);