| 205 | |
| 206 | template <class T> |
| 207 | void push(T** where, T* e) |
| 208 | { |
| 209 | // set element `e' pointers |
| 210 | e->prev = where; |
| 211 | e->next = *where; |
| 212 | |
| 213 | // make next after `e' element (if present) point to it |
| 214 | if (e->next) |
| 215 | e->next->prev = &(e->next); |
| 216 | |
| 217 | // make previous element point to `e' |
| 218 | *(e->prev) = e; |
| 219 | } |
| 220 | |
| 221 | template <class T> |
| 222 | void remove(T* e) |
no outgoing calls
no test coverage detected