1 #ifndef UTIL_CLI_CMDOPTION_PHOENIX_H
2 #define UTIL_CLI_CMDOPTION_PHOENIX_H
34 var = params[0]->to<T>();
54 var.push_back(params[i]->to<typename T::value_type>());
74 var.push_front(params[i]->to<typename T::value_type>());
94 var.insert(params[i]->to<typename T::value_type>());
107 template <
typename T>
116 template <
typename T>
125 template <
typename T>
132 var = params[0]->to_logic_bool();
139 template <
typename T>
size_type get_params_number() const
std::vector< value_type >::size_type size_type
assign_t< T > assign(T &t)
push_front_t< T > push_front(T &t)
set_const_t< T > set_const(T &t, const T &v)
insert_t< T > insert(T &t)
push_back_t< T > push_back(T &t)
assign_logic_bool_t< T > assign_logic_bool(T &t)
通用赋值动作 - 设置一个变量为bool值并检查语义
void operator()(util::cli::callback_param params)
assign_logic_bool_t(T &t)
void operator()(util::cli::callback_param params)
void operator()(util::cli::callback_param params)
void operator()(util::cli::callback_param params)
void operator()(util::cli::callback_param params)
set_const_t(T &t, const T &v)
void operator()(util::cli::callback_param)