StackImpl.peek

Peeks a value in the stack.

struct StackImpl(T, bool ownsMemory = true)
@nogc
T
peek
(
size_t offset
)

Parameters

offset size_t

The offset from the top of the stack to peek.

Return Value

Type: T

The value peeked.

Throws

An exception if an out-of-range access is attempted.

Meta