Imported Upstream version 1.57.0
[platform/upstream/boost.git] / boost / fusion / view / filter_view / detail / key_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_VIEW_FILTER_VIEW_DETAIL_KEY_OF_IMPL_HPP
9 #define BOOST_FUSION_VIEW_FILTER_VIEW_DETAIL_KEY_OF_IMPL_HPP
10
11 #include <boost/fusion/support/config.hpp>
12 #include <boost/fusion/iterator/key_of.hpp>
13
14 namespace boost { namespace fusion { namespace extension
15 {
16     template <typename>
17     struct key_of_impl;
18
19     template <>
20     struct key_of_impl<filter_view_iterator_tag>
21     {
22         template <typename It>
23         struct apply
24           : result_of::key_of<typename It::first_type>
25         {};
26     };
27 }}}
28
29 #endif