Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-31 09:41:55

0001 /*=============================================================================
0002     Copyright (c) 2001-2011 Joel de Guzman
0003 
0004     Distributed under the Boost Software License, Version 1.0. (See accompanying 
0005     file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
0006 ==============================================================================*/
0007 #if !defined(FUSION_NVIEW_SIZE_IMPL_OCT_06_2009_0525PM)
0008 #define FUSION_NVIEW_SIZE_IMPL_OCT_06_2009_0525PM
0009 
0010 #include <boost/fusion/support/config.hpp>
0011 #include <boost/fusion/iterator/distance.hpp>
0012 #include <boost/fusion/sequence/intrinsic/begin.hpp>
0013 #include <boost/fusion/sequence/intrinsic/end.hpp>
0014 
0015 namespace boost { namespace fusion
0016 {
0017     struct nview_tag;
0018 
0019     namespace extension
0020     {
0021         template <typename Tag>
0022         struct size_impl;
0023 
0024         template <>
0025         struct size_impl<nview_tag>
0026         {
0027             template <typename Sequence>
0028             struct apply
0029                 : result_of::distance<
0030                     typename result_of::begin<Sequence>::type
0031                   , typename result_of::end<Sequence>::type>
0032             {};
0033         };
0034     }
0035 }}
0036 
0037 #endif
0038 
0039