mirror of
https://github.com/jbeder/yaml-cpp.git
synced 2025-09-09 04:41:16 +00:00
Added tags and anchors
This commit is contained in:
@@ -4,9 +4,10 @@
|
||||
int main()
|
||||
{
|
||||
YAML::Emitter out;
|
||||
out << YAML::Anchor("monkey");
|
||||
out << YAML::BeginSeq;
|
||||
out << "foo";
|
||||
out << "bar";
|
||||
out << YAML::LocalTag("hi") << "bar";
|
||||
out << YAML::BeginMap;
|
||||
out << "a" << "b" << "c" << "d";
|
||||
out << YAML::EndMap;
|
||||
|
Reference in New Issue
Block a user