20 #ifndef MPD_TAG_SET_HXX
21 #define MPD_TAG_SET_HXX
37 if (a.num_items != b.num_items)
38 return a.num_items < b.num_items;
40 const unsigned n = a.num_items;
41 for (
unsigned i = 0; i < n; ++i) {
42 const TagItem &ai = *a.items[i];
43 const TagItem &bi = *b.items[i];
45 return unsigned(ai.
type) < unsigned(bi.
type);
59 class TagSet :
public std::set<Tag, TagLess> {
68 bool CheckUnique(
TagType dest_type,
TagType type
the type of this item
The meta information about a song file.
Helper class for TagSet which compares two Tag objects.
TagType
Codes for the type of a tag item.
char value[1]
the value of this tag; this is a variable length string
uint_least32_t tag_mask_t
gcc_pure bool operator()(const Tag &a, const Tag &b) const noexcept