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

void pushBase(T&& val)

Adds the value to the start of the list

Parameters

  • val - the value to add

Example

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