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