Skip to content

Defined in header <fkYAML/node.hpp>

fkyaml::basic_node::is_null

bool is_null() const noexcept;

Tests whether the node value type is node_t::NULL_OBJECT.

Return Value

true if the type is node_t::NULL_OBJECT, false otherwise.

Example
#include <iomanip>
#include <iostream>
#include <fkYAML/node.hpp>

int main() {
    fkyaml::node n;
    std::cout << std::boolalpha << n.is_null() << std::endl;
    return 0;
}

output:

true

See Also