aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/yaml-cpp/src/node.cpp
blob: badc3110ecc808fcca7ecb22fdfdb73900b23605 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
#include "yaml-cpp/node/node.h"
#include "nodebuilder.h"
#include "nodeevents.h"

namespace YAML {
Node Clone(const Node& node) {
  NodeEvents events(node);
  NodeBuilder builder;
  events.Emit(builder);
  return builder.Root();
}
}  // namespace YAML