Defined in header <fkYAML/node.hpp>
fkyaml::basic_node::is_boolean¶
Tests whether the node is a boolean node.
Return Value¶
true
if the node is a boolean node, false
otherwise.
Examples¶
Example
#include <iomanip>
#include <iostream>
#include <fkYAML/node.hpp>
int main() {
fkyaml::node n = true;
std::cout << std::boolalpha << n.is_boolean() << std::endl;
return 0;
}
output: