Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:31:08

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(BOOST_FUSION_SIZE_IMPL_09242011_1744)
0008 #define BOOST_FUSION_SIZE_IMPL_09242011_1744
0009 
0010 #include <boost/fusion/support/config.hpp>
0011 #include <tuple>
0012 #include <boost/mpl/int.hpp>
0013 #include <boost/type_traits/remove_const.hpp>
0014 
0015 namespace boost { namespace fusion
0016 {
0017     struct std_tuple_tag;
0018 
0019     namespace extension
0020     {
0021         template<typename T>
0022         struct size_impl;
0023 
0024         template <>
0025         struct size_impl<std_tuple_tag>
0026         {
0027             template <typename Sequence>
0028             struct apply :
0029                 mpl::int_<std::tuple_size<
0030                     typename remove_const<Sequence>::type>::value
0031                 >
0032             {};
0033         };
0034     }
0035 }}
0036 
0037 #endif