Skip to content

Defined in header <fkYAML/node.hpp>

fkyaml::basic_node::is_integer

bool is_integer() const noexcept;

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:

true

See Also