bsl::list::push_front

Prepend the specified move-insertable value to the front of this list.

Synopsis

Declared in <bslstl_list.h>

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

Description

value is left in a valid but unspecified state. If an exception is thrown (other than by the move constructor of a non-copy-insertable value_type), this method has no effect. This method requires that the (template parameter) VALUE be move-insertable into this list (see {Requirements on VALUE}).

Parameters

NameDescription
valueelement to move-prepend