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_09262006_1920)
8 #define BOOST_FUSION_AT_IMPL_09262006_1920
10 #include <boost/fusion/support/config.hpp>
11 #include <boost/tuple/tuple.hpp>
12 #include <boost/mpl/if.hpp>
14 namespace boost { namespace fusion
16 struct boost_tuple_tag;
24 struct at_impl<boost_tuple_tag>
26 template <typename Sequence, typename N>
30 tuples::element<N::value, Sequence>::type
36 , typename tuples::access_traits<element>::const_type
37 , typename tuples::access_traits<element>::non_const_type
41 BOOST_FUSION_GPU_ENABLED
45 return tuples::get<N::value>(seq);