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

📄 delegate_cc_impl.hpp

📁 An article on the implementation of a fast C++ delegate with many advanced features.
💻 HPP
字号:
// FD.Delegate
// Do not include this header directly.

  /**
   * function() implementation for free function with calling convention.
   */
  template<typename UR FD_DELEGATE_COMMA FD_DELEGATE_TEMPLATE_PARMS2>
  self_type & FD_DELEGATE_CC_NAME(function)(FD_DELEGATE_ST UR (FD_DELEGATE_CC *fxn)(FD_DELEGATE_TEMPLATE_ARGS2), bool reset = true)
  {
    typedef struct
    {
      typedef FD_DELEGATE_ST UR (FD_DELEGATE_CC *TFxn)(FD_DELEGATE_TEMPLATE_ARGS2);

      typedef FD_DELEGATE_FUNCTION<result_type, FD_DELEGATE_TEMPLATE_ARGS FD_DELEGATE_COMMA TFxn> type;
    } select_stub;

    if( reset ) this->clear();
    select_stub::type::init( this->get_holder(), fxn );
    return *this;
  }

⌨️ 快捷键说明

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