| 298 | |
| 299 | template<typename Link> |
| 300 | Link *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, |