Constructor for the storage data structure
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(toml_ordered_map), | intent(out) | :: | self |
Instance of the structure |
||
integer, | intent(in), | optional | :: | n |
Initial storage capacity |
subroutine new_ordered_map(self, n) !> Instance of the structure type(toml_ordered_map), 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_ordered_map