powered by
Delete elements from a forward list by reference.
erase_after(x, from, to)
Invisibly returns NULL.
NULL
A CppForwardList object.
Index after which to delete.
Index until including which to delete. Indices start at 1. The function does not perform bounds checks. Indices outside x crash the program.
x
clear, empty, erase, remove..
l <- cpp_forward_list(4:9) l # 4 5 6 7 8 9 erase_after(l, 2L, 4L) l # 4 5 8 9
Run the code above in your browser using DataLab