Assignment operator.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(command_line_interface), | intent(inout) | :: | lhs |
Left hand side. |
||
type(command_line_interface), | intent(in) | :: | rhs |
Right hand side. |
elemental subroutine cli_assign_cli(lhs, rhs) !< Assignment operator. class(command_line_interface), intent(inout) :: lhs !< Left hand side. type(command_line_interface), intent(in) :: rhs !< Right hand side. ! object members call lhs%assign_object(rhs) ! command_line_interface members if (allocated(rhs%clasg )) lhs%clasg = rhs%clasg if (allocated(rhs%examples)) lhs%examples = rhs%examples lhs%disable_hv = rhs%disable_hv endsubroutine cli_assign_cli