Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(array_list), | intent(inout) | :: | this | |||
integer, | intent(in), | dimension(:) | :: | element | The positions of the elements to be deleted from the list |
Removes the elements at the positions specified by the indices in
the array elements
from the list. The elements removed are those
at the specified location just before the call was made. Once all
removals have been performed, the remaining elements well be moved
backwards in position as necessary. Crashes if an element has not
been set.
subroutine array_list_delete_multiple(this, element)
!* Author: Chris MacMackin
! Date: March 2016
!
! Removes the elements at the positions specified by the indices in
! the array `elements` from the list. The elements removed are those
! at the specified location just before the call was made. Once all
! removals have been performed, the remaining elements well be moved
! backwards in position as necessary. Crashes if an element has not
! been set.
!
class(array_list), intent(inout) :: this
integer, dimension(:), intent(in) :: element
!! The positions of the elements to be deleted from the list
end subroutine array_list_delete_multiple