Queue.peek

struct Queue(T)
@safe nothrow pure @nogc ref inout
inout(T)
peek
()
in (!empty, "Trying to peek at an element in an empty queue")
if (
!hasMember!(T, "__xdtor")
)

Return Value

Type: inout(T)

The next element in the queue.

Meta