mirror of
https://github.com/jbeder/yaml-cpp.git
synced 2025-09-09 20:51:16 +00:00
16 lines
270 B
C++
16 lines
270 B
C++
#include "yaml-cpp/value.h"
|
|
#include <map>
|
|
|
|
int main()
|
|
{
|
|
YAML::Value value(YAML::ValueType::Sequence);
|
|
for(int i=0;i<5;i++)
|
|
value.append(i);
|
|
|
|
for(YAML::const_iterator it=value.begin();it!=value.end();++it) {
|
|
std::cout << it->as<int>() << "\n";
|
|
}
|
|
|
|
return 0;
|
|
}
|