Skip to content

Commit 21ec706

Browse files
committed
karm-core: Add overload for removeRange to handle urange.
1 parent 94f240e commit 21ec706

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/karm-core/base/vec.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@ struct _Vec {
7575

7676
void removeRange(usize index, usize count) { _buf.removeRange(index, count); }
7777

78+
void removeRange(urange range) { _buf.removeRange(range.start, range.size); }
79+
7880
void removeUnordered(usize index) {
7981
if (index >= len()) [[unlikely]]
8082
panic("removeUnordered: index out of bounds");

0 commit comments

Comments
 (0)