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()

Constructor for the Address contract.

Public Functions

push

function push(address elem) public virtual

Add an address element to the concurrent array.

  • Parameters:

    • elem: The address element to add to the array.

pop

function pop() public virtual returns (address)

Remove and return the last address element from the concurrent array.

  • Returns:

    • address: The last address element from the array.

get

function get(uint256 idx) public virtual returns (address)

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

function set(uint256 idx, address elem) public

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