MCSPQueue.pop

Pop a value from the queue

Attempt to pop one value from the queue, if one is available.

Please note that failure to pop a value from the queue does not necessarily mean that the queue is empty.

struct MCSPQueue(T, size_t size)
nothrow @trusted @nogc
bool
pop
(
out T result
)

Parameters

result T

out parameter where to store the result.

Return Value

Type: bool

true if a value was, indeed, popped from the queue. False if failed.

Meta