bsl::stack::push

Push a moved value onto the top of this stack.

Synopsis

Declared in <bslstl_stack.h>

void
push(BloombergLP::bslmf::MovableRef<value_type> value);

Description

Push onto this stack a value_type object having the value of the specified value (on entry) by moving the contents of value to the new object on this stack. value is left in a valid but unspecified state.

Parameters

NameDescription
valuevalue moved onto the top of this stack