pop Interface

public interface pop

returns a new vector by deleting the last element in the input vector, or if idx is provided, then delete the element at index idx


Contents


Module Procedures

private pure function pop_i1(vec, idx) result(res)

Arguments

TypeIntentOptionalAttributesName
integer(kind=i1), intent(in), dimension(:), allocatable:: vec
integer, intent(in), optional :: idx

Return Value integer(kind=i1),dimension(:), allocatable

private pure function pop_i2(vec, idx) result(res)

Arguments

TypeIntentOptionalAttributesName
integer(kind=i2), intent(in), dimension(:), allocatable:: vec
integer, intent(in), optional :: idx

Return Value integer(kind=i2),dimension(:), allocatable

private pure function pop_i4(vec, idx) result(res)

Arguments

TypeIntentOptionalAttributesName
integer(kind=i4), intent(in), dimension(:), allocatable:: vec
integer, intent(in), optional :: idx

Return Value integer(kind=i4),dimension(:), allocatable

private pure function pop_i8(vec, idx) result(res)

Arguments

TypeIntentOptionalAttributesName
integer(kind=i8), intent(in), dimension(:), allocatable:: vec
integer, intent(in), optional :: idx

Return Value integer(kind=i8),dimension(:), allocatable

private pure function pop_r4(vec, idx) result(res)

Arguments

TypeIntentOptionalAttributesName
real(kind=r4), intent(in), dimension(:), allocatable:: vec
integer, intent(in), optional :: idx

Return Value real(kind=r4),dimension(:), allocatable

private pure function pop_r8(vec, idx) result(res)

Arguments

TypeIntentOptionalAttributesName
real(kind=r8), intent(in), dimension(:), allocatable:: vec
integer, intent(in), optional :: idx

Return Value real(kind=r8),dimension(:), allocatable

private pure function pop_r16(vec, idx) result(res)

Arguments

TypeIntentOptionalAttributesName
real(kind=r16), intent(in), dimension(:), allocatable:: vec
integer, intent(in), optional :: idx

Return Value real(kind=r16),dimension(:), allocatable

private pure function pop_c4(vec, idx) result(res)

Arguments

TypeIntentOptionalAttributesName
complex(kind=r4), intent(in), dimension(:), allocatable:: vec
integer, intent(in), optional :: idx

Return Value complex(kind=r4),dimension(:), allocatable

private pure function pop_c8(vec, idx) result(res)

Arguments

TypeIntentOptionalAttributesName
complex(kind=r8), intent(in), dimension(:), allocatable:: vec
integer, intent(in), optional :: idx

Return Value complex(kind=r8),dimension(:), allocatable

private pure function pop_c16(vec, idx) result(res)

Arguments

TypeIntentOptionalAttributesName
complex(kind=r16), intent(in), dimension(:), allocatable:: vec
integer, intent(in), optional :: idx

Return Value complex(kind=r16),dimension(:), allocatable

private pure function pop_str(vec, idx) result(res)

Arguments

TypeIntentOptionalAttributesName
character, intent(in), dimension(:), allocatable:: vec
integer, intent(in), optional :: idx

Return Value character,dimension(:), allocatable