Skip to content

Defined in header <fkYAML/node.hpp>

fkyaml::basic_node::is_null

bool is_null() const noexcept;

Tests whether the node is a null node.

Return Value

true if the node is a null node, false otherwise.

Examples

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