swap Interface

public interface swap

Contents


Module Procedures

private elemental subroutine iswap(a, b)

Swaps two integers

Arguments

TypeIntentOptionalAttributesName
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

TypeIntentOptionalAttributesName
logical, intent(inout) :: a

Logicals to swap Logicals to swap

logical, intent(inout) :: b

Logicals to swap Logicals to swap