Added force_insert for mapping nodes that doesn't check to see if the key exists already (so it could duplicate keys)

This commit is contained in:
Jesse Beder
2012-10-31 19:08:09 -05:00
parent a645866ffa
commit 09b4706faf
8 changed files with 79 additions and 1 deletions

View File

@@ -78,6 +78,10 @@ namespace YAML
const Node operator[](const Node& key) const;
Node operator[](const Node& key);
bool remove(const Node& key);
// map
template<typename Key, typename Value>
void force_insert(const Key& key, const Value& value);
private:
explicit Node(detail::node& node, detail::shared_memory_holder pMemory);