Name: allocate | Association: none |
Category: declarative | Properties: default |
|
Arguments
Name | Type | Properties |
list | list of variable list item type | |
|
Clauses
,Semantics
The storage for each list item that appears in the allocate directive is provided an allocation through the memory allocator as determined by the allocator clause with an alignment as determined by the align clause. The scope of this allocation is that of the list item in the base language. At the end of the scope for a given list item the memory allocator used to allocate that list item deallocates the storage.For allocations that arise from this directive the null_fb value of the fallback allocator trait behaves as if the abort_fb had been specified.
Restrictions
Restrictions to the allocate directive are as follows:allocate directives that appear in a target region must specify an allocator clause unless a requires directive with the dynamic_allocators clause is present in the same compilation unit.
Cross References