将其他数据 other_in 复制到变量 other_out (规范)
参数:other_in - 输入数据 other_out - 输出数据
类型 | 意图 | 可选 | 属性 | 名称 | ||
---|---|---|---|---|---|---|
type(other_type), | intent(in) | :: | other_in | |||
type(other_type), | intent(out) | :: | other_out |
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