reserve

Description

Changes the SVector capacity, clears the internal data of an SVector, and defines the SVector capacity as size.

Definition

1
void reserve (std::size_t size)

Parameters

Parameter

Input/Output

Description

size

Input

Pre-allocates memory.

Restrictions

The default SVector capacity is DEFAULT_SVECTOR_SIZE. The input size must be greater than DEFAULT_SVECTOR_SIZE and less than MAX_SVECTOR_SIZE. Otherwise, an exception is thrown.