ListSG.insertBefore

Inserts a node before sibling containing data.

class ListSG
insertBefore

Parameters

sibling ListSG

node to insert data before

data void*

data to put in the newly-inserted node

Return Value

Type: ListSG

the new head of the list.