Constructor for the storage data structure
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(toml_array_list), | intent(out) | :: | self |
Instance of the structure |
||
integer, | intent(in), | optional | :: | n |
Initial storage capacity |
subroutine new_array_list(self, n) !> Instance of the structure type(toml_array_list), intent(out) :: self !> Initial storage capacity integer, intent(in), optional :: n self%n = 0 if (present(n)) then allocate(self%lst(min(1, n))) else allocate(self%lst(initial_size)) end if end subroutine new_array_list