forward_list::operator=

Replaces the elements of the forward list with a copy of another forward list.

forward_list& operator=(const forward_list& _Right);
forward_list& operator=(initializer_list<Type> _IList);
forward_list& operator=(forward_list&& _Right);

Parameters

Parameter

Description

_Right

The forward list being copied into the forward list.

_IList

A brace-enclosed initializer list, which behaves just like a sequence of elements of type Type.

Remarks

The first member operator replaces the controlled sequence with a copy of the sequence controlled by _Right.

The second member operator replaces the controlled sequence from an object of class initializer_list<Type>.

The third member operator is the same as the first, but with an rvalue reference.

Requirements

Header: <forward_list>

Namespace: std

See Also

Reference

forward_list Class