new_list_structure Subroutine

public subroutine new_list_structure(self)

Constructor for the ordered storage data structure

Arguments

Type IntentOptional Attributes Name
class(toml_list_structure), intent(out), allocatable :: self

Instance of the structure


Source Code

subroutine new_list_structure(self)

   !> Instance of the structure
   class(toml_list_structure), allocatable, intent(out) :: self

   block
      type(toml_array_list), allocatable :: list

      allocate(list)
      call new_array_list(list)
      call move_alloc(list, self)
   end block

end subroutine new_list_structure