Exemplo n.º 1
0
 static void ConvertMap(const std::map<Key, Value>& aFrom,
                              dom::Sequence<KeyValuePair>& aOutTo,
                              void (*aElementConverter)(const Key&, const Value&, KeyValuePair&)) {
   for (auto it = aFrom.begin(); it != aFrom.end(); ++it) {
     aOutTo.AppendElement(fallible);
     aElementConverter(it->first, it->second, aOutTo.LastElement());
   }
 }