array_list_delete_single Subroutine

private subroutine array_list_delete_single(this, element)

Arguments

Type IntentOptional AttributesName
class(array_list), intent(inout) :: this
integer, intent(in) :: element

The position of the element to be deleted from the list

Description

Removes the element at the specified position in the list, moving all succeeding items back by one position. Crashes if the element has not been set.


Source Code

  subroutine array_list_delete_single(this, element)
    !* Author: Chris MacMackin
    !  Date: March 2016
    !
    ! Removes the element at the specified position in the list, moving
    ! all succeeding items back by one position. Crashes if the element
    ! has not been set.
    !
    class(array_list), intent(inout) :: this
    integer, intent(in) :: element
      !! The position of the element to be deleted from the list
  end subroutine array_list_delete_single