PageRenderTime 4ms CodeModel.GetById 1ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/Src/Dependencies/Boost/boost/fusion/container/vector/detail/value_at_impl.hpp

http://hadesmem.googlecode.com/
C++ Header | 33 lines | 22 code | 5 blank | 6 comment | 0 complexity | 7e080a98f09fe8d01b61c7784facb62c MD5 | raw file
 1/*=============================================================================
 2    Copyright (c) 2001-2006 Joel de Guzman
 3
 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(FUSION_VALUE_AT_IMPL_05052005_0232)
 8#define FUSION_VALUE_AT_IMPL_05052005_0232
 9
10#include <boost/mpl/at.hpp>
11
12namespace boost { namespace fusion
13{
14    struct vector_tag;
15
16    namespace extension
17    {
18        template <typename Tag>
19        struct value_at_impl;
20
21        template <>
22        struct value_at_impl<vector_tag>
23        {
24            template <typename Sequence, typename N>
25            struct apply 
26            {
27                typedef typename mpl::at<typename Sequence::types, N>::type type;
28            };
29        };
30    }
31}}
32
33#endif