e12ab162c0139b670e0aad1ee3fad60857f8e0cb
[platform/upstream/boost.git] / boost / fusion / container / set / detail / value_of_impl.hpp
1 /*=============================================================================
2     Copyright (c) 2009 Christopher Schmidt
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
8 #ifndef BOOST_FUSION_CONTAINER_SET_DETAIL_VALUE_OF_IMPL_HPP
9 #define BOOST_FUSION_CONTAINER_SET_DETAIL_VALUE_OF_IMPL_HPP
10
11 #include <boost/fusion/support/config.hpp>
12 #include <boost/fusion/sequence/intrinsic/value_at.hpp>
13
14 namespace boost { namespace fusion { namespace extension
15 {
16     template <typename>
17     struct value_of_impl;
18
19     template <>
20     struct value_of_impl<set_iterator_tag>
21     {
22         template <typename It>
23         struct apply
24         {
25             typedef typename
26                 result_of::value_at<
27                     typename It::seq_type::storage_type
28                   , typename It::index
29                 >::type
30             type;
31         };
32     };
33 }}}
34
35 #endif