Standard LibraryTypesSetMethodsreserveOn this pagereserve Method of Set. reserve(integer n) -> void Reserves storage for at least the specified number of elements. Parameters n: The number of elements to reserve storage for.