⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 general.hpp

📁 Boost provides free peer-reviewed portable C++ source libraries. We emphasize libraries that work
💻 HPP
字号:
// Copyright David Abrahams 2006. 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)#ifndef BOOST_CONCEPT_DETAIL_GENERAL_DWA2006429_HPP# define BOOST_CONCEPT_DETAIL_GENERAL_DWA2006429_HPP# include <boost/preprocessor/cat.hpp># ifdef BOOST_OLD_CONCEPT_SUPPORT#  include <boost/concept/detail/has_constraints.hpp>#  include <boost/mpl/if.hpp># endif// This implementation works on Comeau and GCC, all the way back to// 2.95namespace boost { namespace concept {template <class ModelFn>struct requirement_;namespace detail{  template <void(*)()> struct instantiate {};}template <class Model>struct requirement{    static void failed() { ((Model*)0)->~Model(); }};# ifdef BOOST_OLD_CONCEPT_SUPPORTtemplate <class Model>struct constraint{    static void failed() { ((Model*)0)->constraints(); }};  template <class Model>struct requirement_<void(*)(Model)>  : mpl::if_<        concept::not_satisfied<Model>      , constraint<Model>      , requirement<Model>    >::type{};  # else// For GCC-2.x, these can't have exactly the same nametemplate <class Model>struct requirement_<void(*)(Model)>  : requirement<Model>{};  # endif#  define BOOST_CONCEPT_ASSERT_FN( ModelFnPtr )             \    typedef ::boost::concept::detail::instantiate<          \    &::boost::concept::requirement_<ModelFnPtr>::failed>    \      BOOST_PP_CAT(boost_concept_check,__LINE__)}}#endif // BOOST_CONCEPT_DETAIL_GENERAL_DWA2006429_HPP

⌨️ 快捷键说明

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