libcopp  2.2.0
cmd_option_bindt_cc.h
Go to the documentation of this file.
1 #ifndef UTIL_CLI_CMDOPTIONBINDT_CC_H
2 #define UTIL_CLI_CMDOPTIONBINDT_CC_H
3 
4 #pragma once
5 
6 /*
7  * cmd_option_bindt_cc.h
8  *
9  * Created on: 2012-01-18
10  * Author: OWenT
11  *
12  * bing to normal function
13  */
14 
15 namespace util {
16 namespace cli {
17 // 绑定器集合
18 namespace binder {
19 // ============================
20 // === 函数绑定 ===
21 // ============================
22 template <typename _TF>
24  private:
25  _TF func_;
26 
27  public:
29 
30  template <typename _TCBP, typename... _Args>
31  void operator()(_TCBP &param, _Args &...args) {
32  func_(param, args...);
33  }
34 };
35 } // namespace binder
36 } // namespace cli
37 } // namespace util
38 #endif /* cmd_option_bindt_cc_caller */
void operator()(_TCBP &param, _Args &...args)