swap Interface

public interface swap

Module Procedures

private elemental subroutine iswap(a, b)

Swaps two integers

Arguments

Type IntentOptional Attributes Name
integer, intent(inout) :: a

Integers to swap Integers to swap

integer, intent(inout) :: b

Integers to swap Integers to swap

private elemental subroutine bswap(a, b)

Swaps two logicals

Arguments

Type IntentOptional Attributes Name
logical, intent(inout) :: a

Logicals to swap Logicals to swap

logical, intent(inout) :: b

Logicals to swap Logicals to swap