splice()
Data / Array FunctionsDescription
Inserts a value or vector of values into an existing vector at the given index.
Syntax
std::vector<T> splice(std::vector<T> arr, T val, int i)
Parameters
| Name | Type | Description |
|---|---|---|
| arr | std::vector | the source vector |
| val | T | value to insert |
| i | int | position to insert at |