vibe.d beta banner
get vibe.d

Asynchronous I/O that doesn’t get in your way, written in D

Function RingBuffer.linearRemove

Removes elements from the buffer.

void linearRemove (
  RingBuffer.Range r

The argument to this method is a range of elements obtained by using the slice syntax (e.g. ringbuffer[1 .. 2]). Note that removing elements from the middle of an array is a O(n) operation.


Sönke Ludwig


© 2013-2024 Sönke Ludwig


Subject to the terms of the MIT license, as written in the included LICENSE.txt file.