rapidyaml  0.12.0
parse and emit YAML, and do it fast
c4::fmt::boolalpha_< T > Struct Template Reference

write a variable as an alphabetic boolean, ie as either true or false More...

#include <format.hpp>

Public Member Functions

 boolalpha_ (T val_, bool strict_read_=false)
 

Public Attributes

bool val
 
bool strict_read
 

Detailed Description

template<class T>
struct c4::fmt::boolalpha_< T >

write a variable as an alphabetic boolean, ie as either true or false

Parameters
strict_read

Definition at line 65 of file format.hpp.

Constructor & Destructor Documentation

◆ boolalpha_()

template<class T >
c4::fmt::boolalpha_< T >::boolalpha_ ( val_,
bool  strict_read_ = false 
)
inline

Definition at line 67 of file format.hpp.

67 : val(val_ ? true : false), strict_read(strict_read_) {}

Member Data Documentation

◆ val

template<class T >
bool c4::fmt::boolalpha_< T >::val

Definition at line 68 of file format.hpp.

◆ strict_read

template<class T >
bool c4::fmt::boolalpha_< T >::strict_read

Definition at line 69 of file format.hpp.


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