libcopp  2.2.0
Public Member Functions | Data Fields
util::cli::phoenix::assign_logic_bool_t< T > Struct Template Reference

通用赋值动作 - 设置一个变量为bool值并检查语义 More...

#include <cmd_option_phoenix.h>

Collaboration diagram for util::cli::phoenix::assign_logic_bool_t< T >:
Collaboration graph

Public Member Functions

 assign_logic_bool_t (T &t)
 
void operator() (util::cli::callback_param params)
 

Data Fields

T & var
 

Detailed Description

template<typename T>
struct util::cli::phoenix::assign_logic_bool_t< T >

通用赋值动作 - 设置一个变量为bool值并检查语义

Note
no, false, disabled, disable, 0 都会被判定为false,其他为true

Definition at line 126 of file cmd_option_phoenix.h.

Constructor & Destructor Documentation

◆ assign_logic_bool_t()

template<typename T >
util::cli::phoenix::assign_logic_bool_t< T >::assign_logic_bool_t ( T &  t)
inline

Definition at line 128 of file cmd_option_phoenix.h.

Member Function Documentation

◆ operator()()

template<typename T >
void util::cli::phoenix::assign_logic_bool_t< T >::operator() ( util::cli::callback_param  params)
inline

Field Documentation

◆ var

template<typename T >
T& util::cli::phoenix::assign_logic_bool_t< T >::var

The documentation for this struct was generated from the following file: