]> git.donarmstrong.com Git - rsem.git/blob - boost/fusion/adapted/struct/detail/at_impl.hpp
RSEM Source Codes
[rsem.git] / boost / fusion / adapted / struct / detail / at_impl.hpp
1 /*=============================================================================
2     Copyright (c) 2001-2006 Joel de Guzman
3     Copyright (c) 2005-2006 Dan Marsden
4     Copyright (c) 2009-2010 Christopher Schmidt
5
6     Distributed under the Boost Software License, Version 1.0. (See accompanying
7     file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
8 ==============================================================================*/
9
10 #ifndef BOOST_FUSION_ADAPTED_STRUCT_DETAIL_AT_IMPL_HPP
11 #define BOOST_FUSION_ADAPTED_STRUCT_DETAIL_AT_IMPL_HPP
12
13 #include <boost/mpl/int.hpp>
14
15 namespace boost { namespace fusion { namespace extension
16 {
17     template<typename>
18     struct at_impl;
19
20     template <>
21     struct at_impl<struct_tag>
22     {
23         template <typename Seq, typename N>
24         struct apply
25           : extension::struct_member<
26                 typename remove_const<Seq>::type
27               , N::value
28             >::template apply<Seq>
29         {};
30     };
31
32     template <>
33     struct at_impl<assoc_struct_tag>
34       : at_impl<struct_tag>
35     {};
36 }}}
37
38 #endif