for_each.ipp
来自「CGAL is a collaborative effort of severa」· IPP 代码 · 共 36 行
IPP
36 行
/*============================================================================= 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_ALGORITHM_DETAIL_FOR_EACH_IPP)#define FUSION_ALGORITHM_DETAIL_FOR_EACH_IPP#include <boost/mpl/bool.hpp>#include <boost/spirit/fusion/iterator/equal_to.hpp>#include <boost/spirit/fusion/iterator/next.hpp>#include <boost/spirit/fusion/iterator/deref.hpp>namespace boost { namespace fusion { namespace detail{ template <typename First, typename Last, typename F> inline void for_each(First const&, Last const&, F const&, mpl::true_) { } template <typename First, typename Last, typename F> inline void for_each(First const& first, Last const& last, F const& f, mpl::false_) { f(*first); detail::for_each(fusion::next(first), last, f , meta::equal_to<typename meta::next<First>::type, Last>()); }}}}#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?