Skip to content

Defined in header <fkYAML/node.hpp>

fkyaml::basic_node::is_mapping

bool is_mapping() const noexcept;

Tests whether the node is a mapping node.

Return Value

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

Examples

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

int main() {
    fkyaml::node n = {{"foo", true}};
    std::cout << std::boolalpha << n.is_mapping() << std::endl;
    return 0;
}

output:

true

See Also