Generic interface for swapping values of different types.
Swap two integer values.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=i4), | intent(inout) | :: | a |
First integer |
||
| integer(kind=i4), | intent(inout) | :: | b |
Second integer |
Swap two real (double precision) values.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=dp), | intent(inout) | :: | a |
First real |
||
| real(kind=dp), | intent(inout) | :: | b |
Second real |