|
@@ -75,6 +75,10 @@ struct {obj_name} {{
|
|
|
src.append('};')
|
|
|
|
|
|
src.append(f'''
|
|
|
+bool operator==(const {obj_name}& obj1, const {obj_name}& obj2) {{
|
|
|
+ return obj1.idx == obj2.idx;
|
|
|
+}}
|
|
|
+
|
|
|
{obj_name} {obj_name}Collection::iter::operator*() {{
|
|
|
return {{collection, idx}};
|
|
|
}}
|