copy_other Subroutine

public subroutine copy_other(other_in, other_out)

Copies the other data, other_in, to the variable, other_out (Specifications)

Arguments: other_in - the input data other_out - the output data

Arguments

TypeIntentOptionalAttributesName
type(other_type), intent(in) :: other_in
type(other_type), intent(out) :: other_out

Contents

Source Code


Source Code

    subroutine copy_other( other_in, other_out )
!! Version: Experimental
!!
!! Copies the other data, other_in, to the variable, other_out
!! ([Specifications](../page/specs/stdlib_hashmaps.html#copy_other-returns-a-copy-of-the-other-data))
!!
!! Arguments:
!!     other_in  - the input data
!!     other_out - the output data
        type(other_type), intent(in)  :: other_in
        type(other_type), intent(out) :: other_out

        allocate(other_out % value, source = other_in % value )

    end subroutine copy_other