| 1 | /*============================================================================= |
| 2 | Copyright (c) 2001-2011 Joel de Guzman |
| 3 | Copyright (c) 2006 Dan Marsden |
| 4 | |
| 5 | Distributed under the Boost Software License, Version 1.0. (See accompanying |
| 6 | file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) |
| 7 | ==============================================================================*/ |
| 8 | #if !defined(FUSION_SIZE_IMPL_20060124_0800) |
| 9 | #define FUSION_SIZE_IMPL_20060124_0800 |
| 10 | |
| 11 | namespace boost { namespace fusion { |
| 12 | |
| 13 | struct zip_view_tag; |
| 14 | |
| 15 | namespace extension |
| 16 | { |
| 17 | template<typename Sequence> |
| 18 | struct size; |
| 19 | |
| 20 | template<typename Tag> |
| 21 | struct size_impl; |
| 22 | |
| 23 | template<> |
| 24 | struct size_impl<zip_view_tag> |
| 25 | { |
| 26 | template<typename Sequence> |
| 27 | struct apply |
| 28 | { |
| 29 | typedef typename Sequence::size type; |
| 30 | }; |
| 31 | }; |
| 32 | } |
| 33 | }} |
| 34 | |
| 35 | #endif |
| 36 | |