cli20 0.1.2
A C++20 typed-schema command-line parser
Loading...
Searching...
No Matches
cli::pack::Toggle Struct Reference

Flips the bool storage each time the option is seen. More...

#include <action.hh>

Public Types

template<class Prev>
using after_type = void
template<class Prev>
using storage_type = bool

Public Member Functions

template<class T>
auto operator() (ActionCtx< bool > ctx, ActionResult< T > input) const -> ActionResult< void >

Static Public Attributes

template<class Prev>
static constexpr bool accepts_input = true

Detailed Description

Flips the bool storage each time the option is seen.

Definition at line 1524 of file action.hh.

Member Typedef Documentation

◆ after_type

template<class Prev>
using cli::pack::Toggle::after_type = void

Definition at line 1529 of file action.hh.

◆ storage_type

template<class Prev>
using cli::pack::Toggle::storage_type = bool

Definition at line 1532 of file action.hh.

Member Function Documentation

◆ operator()()

template<class T>
auto cli::pack::Toggle::operator() ( ActionCtx< bool > ctx,
ActionResult< T > input ) const -> ActionResult< void >
inline

Definition at line 1535 of file action.hh.

Member Data Documentation

◆ accepts_input

template<class Prev>
bool cli::pack::Toggle::accepts_input = true
staticconstexpr

Definition at line 1526 of file action.hh.


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