Megosztás a következőn keresztül:


forward_list::emplace_front

Adds an element constructed in place to the beginning of the list.

template<class Type>
    void emplace_front(Type&& _Val);

Parameters

Parameter

Description

_Val

The element added to the beginning of the forward list.

Remarks

This member function inserts an element with the constructor arguments __Val at the end of the controlled sequence.

If an exception is thrown, the container is left unaltered and the exception is rethrown.

Requirements

Header: <forward_list>

Namespace: std

See Also

Reference

forward_list Class