libcopp
2.2.0
test
cli
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>
23
class
cmd_option_bindt_cc_caller
{
24
private
:
25
_TF
func_
;
26
27
public
:
28
cmd_option_bindt_cc_caller
(_TF f) :
func_
(f) {}
29
30
template
<
typename
_TCBP,
typename
... _Args>
31
void
operator()
(_TCBP ¶m, _Args &...args) {
32
func_
(param, args...);
33
}
34
};
35
}
// namespace binder
36
}
// namespace cli
37
}
// namespace util
38
#endif
/* cmd_option_bindt_cc_caller */
util::cli::binder::cmd_option_bindt_cc_caller
Definition:
cmd_option_bindt_cc.h:23
util::cli::binder::cmd_option_bindt_cc_caller::func_
_TF func_
Definition:
cmd_option_bindt_cc.h:25
util::cli::binder::cmd_option_bindt_cc_caller::cmd_option_bindt_cc_caller
cmd_option_bindt_cc_caller(_TF f)
Definition:
cmd_option_bindt_cc.h:28
util::cli::binder::cmd_option_bindt_cc_caller::operator()
void operator()(_TCBP ¶m, _Args &...args)
Definition:
cmd_option_bindt_cc.h:31
util
Definition:
atomic_int_type.h:86
Generated by
1.9.1