| 54 | }; |
| 55 | |
| 56 | struct LessOffset |
| 57 | { |
| 58 | bool operator()(TagInfo const & t1, TagInfo const & t2) const |
| 59 | { |
| 60 | if (t1.m_offset == t2.m_offset) |
| 61 | { |
| 62 | // Element with nonzero size should be the last one, |
| 63 | // for correct append writer mode (FilesContainerW::GetWriter). |
| 64 | return (t1.m_size < t2.m_size); |
| 65 | } |
| 66 | else |
| 67 | return (t1.m_offset < t2.m_offset); |
| 68 | } |
| 69 | bool operator()(TagInfo const & t1, uint64_t const & t2) const { return (t1.m_offset < t2); } |
| 70 | bool operator()(uint64_t const & t1, TagInfo const & t2) const { return (t1 < t2.m_offset); } |
| 71 | }; |
| 72 | |
| 73 | class EqualTag |
| 74 | { |