Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(iterator), | intent(inout) | :: | this |
Resets the position of the iterator to the start, so it is as though the next routine has never been called.
subroutine reset(this)
!* Author: Chris MacMackin
! Date: March 2016
!
! Resets the position of the iterator to the start, so it is as
! though the [[iterator(type):next(bound)]] routine has never been
! called.
!
class(iterator), intent(inout) :: this
this%location = 1
end subroutine reset