array_list_set_multiple Subroutine

private subroutine array_list_set_multiple(this, elements, items)

Arguments

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

The indices (starting from 1) of the elements whose values are to be set.

class(*), intent(in), dimension(:):: items

The values to be stored in the specified elements. Each item is placed in the element specified by the integer in the corresponding position in the array elements.

Description

Places the values of the provided array of items in the locations specified by the corresponding indices in the in the array of elements.


Source Code

  subroutine array_list_set_multiple(this, elements, items)
    !* Author: Chris MacMackin
    !  Date: March 2016
    !
    ! Places the values of the provided array of items in the locations
    ! specified by the corresponding indices in the in the array of
    ! elements.
    !
    class(array_list), intent(inout) :: this
    integer, dimension(:), intent(in) :: elements
      !! The indices (starting from 1) of the elements whose values 
      !! are to be set.
    class(*), dimension(:), intent(in) :: items
      !! The values to be stored in the specified elements. Each item
      !! is placed in the element specified by the integer in the
      !! corresponding position in the array `elements`.
  end subroutine array_list_set_multiple