rapidyaml  0.16.0
parseandemitYAML,anddoitfast
boolean specifiers

Classes

struct  c4::fmt::boolalpha_
 

Functions

template<class T >
boolalpha_ c4::fmt::boolalpha (T const &val=false)
 tag function to mark a variable to be written as an alphabetic boolean, ie as either true or false More...
 

Detailed Description

Function Documentation

template<class T >
boolalpha_ c4::fmt::boolalpha ( T const &  val = false)

tag function to mark a variable to be written as an alphabetic boolean, ie as either true or false

Definition at line 70 of file format.hpp.

Referenced by sample_create_tree(), sample_formatting(), and sample_fundamental_types().

71 {
72  return boolalpha_{val ? true : false};
73 }