MCPcopy Create free account
hub / github.com/DFHack/dfhack / linked_list_insert_after

Function linked_list_insert_after

library/include/MiscUtils.h:300–308  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

298
299template<typename Link>
300Link *linked_list_insert_after(Link *pos, Link *link)
301{
302 link->next = pos->next;
303 if (pos->next)
304 pos->next->prev = link;
305 link->prev = pos;
306 pos->next = link;
307 return link;
308}
309
310/**
311 * Returns true if an item that matches the given function was found, deleted,

Callers 1

linkIntoWorldMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected