new_map_structure Subroutine

public subroutine new_map_structure(self)

Constructor for the storage data structure

Arguments

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

Instance of the structure


Source Code

subroutine new_map_structure(self)

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

   block
      type(toml_ordered_map), allocatable :: map

      allocate(map)
      call new_ordered_map(map)
      call move_alloc(map, self)
   end block

end subroutine new_map_structure