mirror of
https://github.com/fmang/opustags.git
synced 2024-11-13 00:42:46 +01:00
Tags: make constructible with initializer lists
This commit is contained in:
parent
fc2a4cb41c
commit
74904fd516
@ -14,6 +14,14 @@ static bool iequals(const std::string &a, const std::string &b)
|
||||
return true;
|
||||
}
|
||||
|
||||
Tags::Tags()
|
||||
{
|
||||
}
|
||||
|
||||
Tags::Tags(const std::vector<Tag> &tags) : tags(tags)
|
||||
{
|
||||
}
|
||||
|
||||
const std::vector<Tag> Tags::get_all() const
|
||||
{
|
||||
return tags;
|
||||
|
@ -16,6 +16,9 @@ namespace opustags {
|
||||
class Tags final
|
||||
{
|
||||
public:
|
||||
Tags();
|
||||
Tags(const std::vector<Tag> &tags);
|
||||
|
||||
const std::vector<Tag> get_all() const;
|
||||
|
||||
std::string get(const std::string &key) const;
|
||||
|
Loading…
Reference in New Issue
Block a user