bool f() {
return display_id == other.display_id &&
parent_display_id == other.parent_display_id &&
position == other.position && offset == other.offset &&
offset_reference == other.offset_reference;
}
personal preference, but it's easy to miss that the third line actually has two equalities
feel free to close if you disagree/not worth the effort