Defined in header <fkYAML/node.hpp>
fkyaml::basic_node::boolean_type¶
The type used to store boolean values.
The YAML specification describes a boolean as a type which differentiates the following literals:
- true, True, TRUE ->
true
- false, False, FALSE ->
false
The actual type is defined by the template parameter BooleanType
.
If not explicitly specified, the default type bool
is defined.
With the decided type, boolean values are stored directly inside a basic_node
.
Examples¶
Example
#include <iomanip>
#include <iostream>
#include <type_traits>
#include <fkYAML/node.hpp>
int main() {
std::cout << std::boolalpha << std::is_same<bool, fkyaml::node::boolean_type>::value << std::endl;
return 0;
}
output: