tag/Tag: added operator==(Tag&)
This commit is contained in:
parent
3e9c2cce71
commit
2a9c3a2e50
@ -7,6 +7,15 @@
|
||||
|
||||
#include <cassert>
|
||||
|
||||
bool
|
||||
Tag::operator==(const Tag &other) const noexcept {
|
||||
return (this == &other) ? true :
|
||||
duration == other.duration
|
||||
&& has_playlist == other.has_playlist
|
||||
&& num_items == other.num_items
|
||||
&& std::equal(begin(), end(), other.begin(), other.end());
|
||||
}
|
||||
|
||||
void
|
||||
Tag::Clear() noexcept
|
||||
{
|
||||
|
@ -65,6 +65,8 @@ struct Tag {
|
||||
return *this;
|
||||
}
|
||||
|
||||
bool operator==(const Tag &other) const noexcept;
|
||||
|
||||
/**
|
||||
* Similar to the move operator, but move only the #TagItem
|
||||
* array.
|
||||
|
Loading…
x
Reference in New Issue
Block a user