| 1 | /*============================================================================= |
| 2 | Copyright (c) 2001-2011 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_CATEGORY_OF_IMPL_HPP |
| 11 | #define BOOST_FUSION_ADAPTED_STRUCT_DETAIL_CATEGORY_OF_IMPL_HPP |
| 12 | |
| 13 | namespace boost { namespace fusion |
| 14 | { |
| 15 | namespace extension |
| 16 | { |
| 17 | template<typename> |
| 18 | struct category_of_impl; |
| 19 | |
| 20 | template<> |
| 21 | struct category_of_impl<struct_tag> |
| 22 | { |
| 23 | template<typename Seq> |
| 24 | struct apply |
| 25 | { |
| 26 | typedef random_access_traversal_tag type; |
| 27 | }; |
| 28 | }; |
| 29 | |
| 30 | template<> |
| 31 | struct category_of_impl<assoc_struct_tag> |
| 32 | { |
| 33 | template<typename Seq> |
| 34 | struct apply |
| 35 | { |
| 36 | typedef assoc_struct_category type; |
| 37 | }; |
| 38 | }; |
| 39 | } |
| 40 | }} |
| 41 | |
| 42 | #endif |
| 43 | |