File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -1774,6 +1774,13 @@ supports the following operations:
1774
1774
Inserts _ ` item ` _ at index _ ` index ` _ within _ ` v ` _ . This operation is O(n)
1775
1775
unless _ ` index ` _ is up to one element away from either end of the vector, in
1776
1776
which case it's O(1) amortized.
1777
+ * <pre ><em >v</em >.remove(<em >index<em >)</pre >
1778
+ Remove and return the element at index _ ` index ` _ within _ ` v ` _ . This requires
1779
+ the vector to be non-empty. If that is not upheld, then an assertion will be
1780
+ failed at run-time.
1781
+
1782
+ This operation is O(n) unless _ ` index ` _ is up to one element away from either
1783
+ end of the vector, in which case it's O(1) amortized.
1777
1784
* <pre ><em >v</em >.len</pre >
1778
1785
Evaluates to the length of the vector.
1779
1786
You can’t perform that action at this time.
0 commit comments