tag/Tag: added operator==(Tag&)
This commit is contained in:
@ -7,6 +7,15 @@
|
|||||||
|
|
||||||
#include <cassert>
|
#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
|
void
|
||||||
Tag::Clear() noexcept
|
Tag::Clear() noexcept
|
||||||
{
|
{
|
||||||
|
@ -65,6 +65,8 @@ struct Tag {
|
|||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool operator==(const Tag &other) const noexcept;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Similar to the move operator, but move only the #TagItem
|
* Similar to the move operator, but move only the #TagItem
|
||||||
* array.
|
* array.
|
||||||
|
Reference in New Issue
Block a user