shift_op.hpp
来自「CGAL is a collaborative effort of severa」· HPP 代码 · 共 88 行
HPP
88 行
// NO INCLUDE GUARDS, THE HEADER IS INTENDED FOR MULTIPLE INCLUSION// Copyright Aleksey Gurtovoy 2000-2004//// Distributed under 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)//// See http://www.boost.org/libs/mpl for documentation.// $Source: /CVSROOT/CGAL/Packages/Boost/include/boost/mpl/aux_/shift_op.hpp,v $// $Date: 2004/11/20 10:39:39 $// $Revision: 1.1.1.1 $#if !defined(BOOST_MPL_PREPROCESSING_MODE)# include <boost/mpl/integral_c.hpp># include <boost/mpl/aux_/value_wknd.hpp>#endif#if !defined(AUX778076_OP_PREFIX)# define AUX778076_OP_PREFIX AUX778076_OP_NAME#endif#define AUX778076_OP_ARITY 2#include <boost/mpl/aux_/numeric_op.hpp>#include <boost/mpl/aux_/config/static_constant.hpp>#include <boost/mpl/aux_/config/use_preprocessed.hpp>#if !defined(BOOST_MPL_CFG_NO_PREPROCESSED_HEADERS) \ && !defined(BOOST_MPL_PREPROCESSING_MODE)# define BOOST_MPL_PREPROCESSED_HEADER AUX778076_OP_PREFIX.hpp# include <boost/mpl/aux_/include_preprocessed.hpp>#else# include <boost/mpl/aux_/config/integral.hpp># include <boost/preprocessor/cat.hpp>namespace boost { namespace mpl {#if defined(BOOST_MPL_CFG_NO_NESTED_VALUE_ARITHMETIC)namespace aux {template< typename T, typename Shift, T n, Shift s >struct BOOST_PP_CAT(AUX778076_OP_PREFIX,_wknd){ BOOST_STATIC_CONSTANT(T, value = (n AUX778076_OP_TOKEN s)); typedef integral_c<T,value> type;};}#endiftemplate<>struct AUX778076_OP_IMPL_NAME<integral_c_tag,integral_c_tag>{ template< typename N, typename S > struct apply#if !defined(BOOST_MPL_CFG_NO_NESTED_VALUE_ARITHMETIC) : integral_c< typename N::value_type , ( BOOST_MPL_AUX_VALUE_WKND(N)::value AUX778076_OP_TOKEN BOOST_MPL_AUX_VALUE_WKND(S)::value ) >#else : aux::BOOST_PP_CAT(AUX778076_OP_PREFIX,_wknd)< typename N::value_type , typename S::value_type , N::value , S::value >::type#endif { };};}}#endif // BOOST_MPL_CFG_NO_PREPROCESSED_HEADERS#undef AUX778076_OP_TAG_NAME#undef AUX778076_OP_IMPL_NAME#undef AUX778076_OP_ARITY#undef AUX778076_OP_PREFIX#undef AUX778076_OP_NAME#undef AUX778076_OP_TOKEN
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?