array_list_remove_all Subroutine

private subroutine array_list_remove_all(this, item)

Arguments

Type IntentOptional AttributesName
class(array_list), intent(inout) :: this
class(*), intent(in) :: item

An item, all occurrences of which will be removed from the list

Description

Remove all occurrences of the specified item from the list, moving all succeeding items back in position. No action is taken if the item is not present.


Source Code

  subroutine array_list_remove_all(this, item)
    !* Author: Chris MacMackin
    !  Date: March 2016
    !
    ! Remove all occurrences of the specified item from the list,
    ! moving all succeeding items back in position. No action is taken
    ! if the item is not present.
    !
    class(array_list), intent(inout) :: this
    class(*), intent(in) :: item
      !! An item, all occurrences of which will be removed from the
      !! list
  end subroutine array_list_remove_all