vibe.d beta banner
get vibe.d
0.10.1

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

RingBuffer.opApply - multiple declarations

Function RingBuffer.opApply

Enables foreach iteration over all elements.

int opApply (
  scope @safe int delegate(ref T itm) del
);

Function RingBuffer.opApply

Enables foreach iteration over all elements along with their indices.

int opApply (
  scope @safe int delegate(size_t i, ref T itm) del
);
Authors

Sönke Ludwig

Copyright

© 2013-2024 Sönke Ludwig

License

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