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

void pushBack(T&& val)

Adds the value to the end of the list

Parameters

  • val - the value to add

Example

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