Compartilhar via


forward_list::emplace_after

Move constructs a new element after a specified position.

template<class _Ty>
    iterator emplace_after(const_iterator _Where, Type&& _Val);

Parameters

Parameter

Description

_Where

The position in the target forward list where the new element is constructed.

_Val

The constructor argument.

Return Value

An iterator that designates the newly inserted element.

Remarks

This member function inserts an element with the constructor arguments _Val just after the element pointed to by _Where in the controlled sequence. Its behavior is otherwise the same as forward_list::insert_after.

Requirements

Header: <forward_list>

Namespace: std

See Also

Reference

forward_list Class