From 4945e533c37d261e82d34ea129f441be06385cce Mon Sep 17 00:00:00 2001 From: ljfa-ag Date: Thu, 9 Jul 2015 18:09:06 +0200 Subject: Create tag_compound::insert method --- src/tag_compound.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') diff --git a/src/tag_compound.cpp b/src/tag_compound.cpp index 4c6c03264e..4ee38c4412 100644 --- a/src/tag_compound.cpp +++ b/src/tag_compound.cpp @@ -57,6 +57,11 @@ std::pair tag_compound::put(const std::string& key } } +std::pair tag_compound::insert(const std::string& key, value&& val) +{ + return tags.emplace(key, std::move(val)); +} + bool tag_compound::erase(const std::string& key) { return tags.erase(key) != 0; -- cgit 0.0.5-2-1-g0f52