summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorljfa-ag <ljfa-ag@web.de>2015-07-17 19:49:21 +0200
committerljfa-ag <ljfa-ag@web.de>2015-07-17 19:49:21 +0200
commitf5fc52e27b54a47ee86edfe9ba002426a4833d3d (patch)
tree962bed2103c9b1ded57c69d7bbcf88f9f670c584 /include
parent578dd6911154a836cda92b5d2cef15efae7c96b9 (diff)
downloadProject-Tick-f5fc52e27b54a47ee86edfe9ba002426a4833d3d.tar.gz
Project-Tick-f5fc52e27b54a47ee86edfe9ba002426a4833d3d.zip
Overload has_key with version that takes tag_type
Diffstat (limited to 'include')
-rw-r--r--include/tag_compound.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/tag_compound.h b/include/tag_compound.h
index abf1df239a..da6b755ad5 100644
--- a/include/tag_compound.h
+++ b/include/tag_compound.h
@@ -100,6 +100,8 @@ public:
///Returns true if the given key exists in the compound
bool has_key(const std::string& key) const;
+ ///Returns true if the given key exists and the tag has the given type
+ bool has_key(const std::string& key, tag_type type) const;
///Returns the number of tags in the compound
size_t size() const;