SpanPopBack

Pop the last element off a span, and return a reference to that element.

Synopsis

Declared in <span.h>

template<typename T>
T&
SpanPopBack(std::span<T>& span);

Return Value

A reference to the element that was last before the call.

Parameters

NameDescription
spanThe span to shrink; on return it refers to one fewer element.