You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add to_node() implementations for STL container types (#465, @fktn-k)
fkyaml::basic_node objects can now be constructible with objects with most of the STL container types.
std::list<int> l {123, -456, 789};
fkyaml::node seq = l; // internally converted as a sequence with the built-in to_node implementation.
std::unordered_map<std::string, float> um {{"foo", 3.14f}, {"bar", 1.41f}};
fkyaml::node map = um; // internally converted as a mapping with the built-in to_node implementation.