Luna::Variant::erase
void erase(usize begin, usize end)
Erases one range [begin, end) of child variants from the current variant.
Parameters
-
in begin
The index of first child variant to remove.
-
in end
The index of one-past-last child variant to remove.
Valid Usage
-
The current variant must be an array variant.
-
begin
must not be greater thanend
. -
end
must not be greater than size.