Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
yaml-cpp で、古い API スニペットをどのように変更しますか。
YAML::Node doc; while(parser.GetNextDocument(doc)) { // ... }
新しい API に?
使用できます
std::vector<YAML::Node> docs = YAML::LoadAll("--- foo\n--- bar\n");
(または類似のLoadAllFromFile) を使用して一連のドキュメントを解析します。
LoadAllFromFile