StackImpl.tryPeek

Attempts to peek a value from the stack.

struct StackImpl(T, bool ownsMemory = true)
@nogc
bool
tryPeek
(
size_t offset
,
ref T dst
)

Parameters

offset size_t

The offset from the top of the stack to peek.

dst T

The variable to store the peeked value in.

Return Value

Type: bool

Whether the operation succeeded.

Meta