mirror of
https://github.com/jbeder/yaml-cpp.git
synced 2025-09-09 20:51:16 +00:00
13 lines
299 B
C++
13 lines
299 B
C++
#include "yaml-cpp/value.h"
|
|
#include <map>
|
|
|
|
int main()
|
|
{
|
|
YAML::Value value = YAML::Parse("{foo: bar, monkey: value}");
|
|
for(YAML::const_iterator it=value.begin();it!=value.end();++it) {
|
|
std::cout << it->first.as<std::string>() << " -> " << it->second.as<std::string>() << "\n";
|
|
}
|
|
|
|
return 0;
|
|
}
|