Defined in header <fkYAML/node.hpp>
fkyaml::basic_node::const_iterator¶
The type for constant 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.
const fkyaml::node sequence_node = {1, 2, 3};
// get an iterator to the first sequence element.
fkyaml::node::const_iterator it = sequence_node.begin();
std::cout << *it << std::endl;
return 0;
}
output: