Assigns another list.
If that is passed by value, it won't be copied, but moved. This list will take the ownership over that's storage and the allocator.
If that is passed by reference, it will be copied.
Content type.
The value should be assigned.
$(D_KEYWORD this).
{ auto l1 = SList!int([5, 4, 9]); auto l2 = SList!int([9, 4]); l1 = l2; assert(l1 == l2); } { auto l1 = SList!int([5, 4, 9]); auto l2 = SList!int([9, 4]); l1 = SList!int([9, 4]); assert(l1 == l2); }
See Implementation
Assigns another list.
If that is passed by value, it won't be copied, but moved. This list will take the ownership over that's storage and the allocator.
If that is passed by reference, it will be copied.