Defined in header <fkYAML/node.hpp>
fkyaml::basic_node::iterator¶
The type for iterators of basic_node
containers.
This iterator type is commonly used for sequence and mapping container values.
Example
#include <iomanip>
#include <iostream>
#include <fkYAML/node.hpp>
int main() {
// create YAML nodes.
fkyaml::node sequence_node = {1, 2, 3};
// get an iterator to the first sequence element.
fkyaml::node::iterator it = sequence_node.begin();
std::cout << *it << std::endl;
return 0;
}
output: