equal_to.hpp

来自「CGAL is a collaborative effort of severa」· HPP 代码 · 共 48 行

HPP
48
字号
/*=============================================================================    Copyright (c) 2003 Joel de Guzman    Use, modification and distribution is subject to the Boost Software    License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at    http://www.boost.org/LICENSE_1_0.txt)==============================================================================*/#if !defined(FUSION_ITERATOR_EQUAL_TO_HPP)#define FUSION_ITERATOR_EQUAL_TO_HPP#include <boost/spirit/fusion/detail/config.hpp>#include <boost/spirit/fusion/iterator/as_fusion_iterator.hpp>#include <boost/type_traits/is_same.hpp>#include <boost/type_traits/add_const.hpp>namespace boost { namespace fusion{    namespace meta    {        template <typename Tag>        struct equal_to_impl        {            template <typename I1, typename I2>            struct apply            {                typedef typename                    is_same<                        typename add_const<I1>::type                      , typename add_const<I2>::type                    >::type                type;                BOOST_STATIC_CONSTANT(bool, value = FUSION_GET_VALUE(type));            };        };        template <typename I1, typename I2>        struct equal_to            : equal_to_impl<typename as_fusion_iterator<I1>::type::tag>::                template apply<                    typename as_fusion_iterator<I1>::type                  , typename as_fusion_iterator<I2>::type                >::type {};    }}}#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?