Fcitx
Public Types | Public Member Functions | List of all members
fcitx::OptionalConstrain< SubConstrain > Struct Template Reference

Optional Constrain that applies the constrain only when the value is not std::nullopt. More...

#include <fcitx-config/option.h>

Public Types

using ElementType = typename SubConstrain::Type
 
using Type = std::optional< ElementType >
 

Public Member Functions

 OptionalConstrain (SubConstrain sub=SubConstrain())
 
bool check (const Type &value)
 
void dumpDescription (RawConfig &config) const
 

Detailed Description

template<typename SubConstrain>
struct fcitx::OptionalConstrain< SubConstrain >

Optional Constrain that applies the constrain only when the value is not std::nullopt.

Definition at line 178 of file option.h.


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