Skip to main content Link Menu Expand (external link) Document Search Copy Copied

void movePush(T& val)

Calls std::move on the value when adding it into the list.

Do not use this function if you do not understand what std::move does.

Parameters

  • val - a reference to the value to add

Example

LinkedList<int> l = {3, 4, 5};
int v = 6;
l.push(v);
//l now contains {3, 4, 5, 6}