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