16 #ifndef SURGSIM_DATASTRUCTURES_DATASTRUCTURESCONVERT_H
17 #define SURGSIM_DATASTRUCTURES_DATASTRUCTURESCONVERT_H
21 #include <unordered_map>
22 #include <unordered_set>
23 #include <yaml-cpp/yaml.h>
42 template <
class Key,
class T>
43 struct convert<std::unordered_map<Key, T>>
45 static Node encode(
const std::unordered_map<Key, T>& rhs);
46 static bool decode(
const Node& node, std::unordered_map<Key, T>& rhs);
51 template <
class Value>
54 static Node encode(
const std::unordered_set<Value>& rhs);
55 static bool decode(
const Node& node, std::unordered_set<Value>& rhs);
62 #endif // SURGSIM_DATASTRUCTURES_DATASTRUCTURESCONVERT_H