insert

Description

Inserts an element into a specified location in the SVector.

Definition

1
void insert(const std::size_t pos, const T &value) noexcept((!CHECK_BOUND) && std::is_nothrow_assignable<T, const T &>::value)

Parameters

Parameter

Input/Output

Description

pos

Input

Position where elements are inserted

value

Input

Value of the element inserted at pos

Restrictions

If the length of the SVector where an element is to be inserted is greater than or equal to the value of MAX_SVECTOR_SIZE when the function is called, a length overflow exception is thrown.

If the passed pos is greater than the number of elements in an SVector, a length overflow exception will be thrown.