Address
Concurrent Address Array
The Address contract
is a concurrent array specialized for storing addresses. It inherits from the Base contract to utilize container functionalities for address storage.
Constructor
Address()
Constructor for the Address contract.
Public Functions
push
Add an address element to the concurrent array.
Parameters:
elem
: The address element to add to the array.
pop
Remove and return the last address element from the concurrent array.
Returns:
address
: The last address element from the array.
get
Retrieve the address element at the given index from the concurrent array.
Parameters:
idx
: The index of the address element to retrieve.
Returns:
address
: The address element stored at the given index.
set
Set the address element at the given index in the concurrent array.
Parameters:
idx
: The index where the address element should be stored.elem
: The address element to be stored at the specified index.
Last updated