Drop every element. The storage itself is untouched, so this is a single integer assignment; the array can be reused immediately.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(fixed_array_dp_t), | intent(inout) | :: | self |
pure subroutine fixed_array_dp_clear(self) !! Drop every element. The storage itself is untouched, so this is a !! single integer assignment; the array can be reused immediately. class(fixed_array_dp_t), intent(inout) :: self self%n_items = 0_default_int end subroutine fixed_array_dp_clear