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

Validates that the input value is not empty (requires .empty() member). More...

#include <action.hh>

Public Types

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

Public Member Functions

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

Static Public Attributes

template<class Prev>
static constexpr bool accepts_input

Detailed Description

Validates that the input value is not empty (requires .empty() member).

Definition at line 1194 of file action.hh.

Member Typedef Documentation

◆ after_type

template<class Prev>
using cli::validation::NonEmpty::after_type = Prev

Definition at line 1200 of file action.hh.

◆ storage_type

template<class Prev>
using cli::validation::NonEmpty::storage_type = void

Definition at line 1203 of file action.hh.

Member Function Documentation

◆ operator()()

template<class U>
auto cli::validation::NonEmpty::operator() ( ActionCtx< void > ctx,
ActionResult< U > input ) const -> ActionResult< U >
inline

Definition at line 1206 of file action.hh.

Member Data Documentation

◆ accepts_input

template<class Prev>
bool cli::validation::NonEmpty::accepts_input
staticconstexpr
Initial value:
=
requires(const detail::decay_t<Prev>& value) { value.empty(); }

Definition at line 1196 of file action.hh.


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