From 074a23e6b4c7968715cfcc52ab9305be8a9fe3ac Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 3 Dec 2013 11:17:43 +0100 Subject: TagBuilder: add method HasType() --- src/tag/TagBuilder.hxx | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/tag/TagBuilder.hxx') diff --git a/src/tag/TagBuilder.hxx b/src/tag/TagBuilder.hxx index ffc60a1b2..ff6251014 100644 --- a/src/tag/TagBuilder.hxx +++ b/src/tag/TagBuilder.hxx @@ -108,6 +108,13 @@ public: items.reserve(n); } + /** + * Checks whether the tag contains one or more items with + * the specified type. + */ + gcc_pure + bool HasType(TagType type) const; + /** * Appends a new tag item. * -- cgit v1.2.3