CLion 2021.2 Help

Select Fields Dialog

Code | Generate | Equality (Relational) Operators

This dialog can be invoked when you generate code for relational, equality and stream output operators.

Common options

ItemDescription
Sorted alphabetically 2xClick this button to sort the elements of a list in alphabetical order.
Icons actions collapseallClick this button to have all the nodes collapsed.
Icons actions expandallClick this button to have all the nodes expanded.
Generate in placeSelect this checkbox to generate an operator within implementation module.

Common options for comparison operators

ItemDescription
Generate as class membersSelect this checkbox to define an operator as a class member.
Use std::tieSelect this checkbox to enable using a tuple.

Generating equality operator

ItemDescription
Generate != together with ==Select this checkbox to generate operator != defined through operator ==

Generating relational operators

ItemDescription
Generate >, <=, >= together with <Select this checkbox to generate operators >, <= and > defined through operator <.
Last modified: 27 April 2021