CLion 2016.2 Help

Select Fields Dialog

Code | Generate | Generate | Equality (Relational) Operator

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

Common options

ItemDescription
sortedAlphabetically@2x Click this button to sort the elements of a list in alphabetical order.
collapseall@2x Click this button to have all the nodes collapsed.
expandall@2x Click this button to have all the nodes expanded.
Generate in place Select this check box to generate an operator within implementation module.

Common options for comparision operators

ItemDescription
Generate as class members Select this check box to define an operator as a class member.
Use std::tie Select this check box to enable using a tuple.

Generating equality operator

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

Generating relational operators

ItemDescription
Generate >, <=, >= together with < Select this check box to generate operators >, <= and > defined through operator <.
Last modified: 29 July 2016