| 614 | |
| 615 | template <class C, class L> |
| 616 | inline void |
| 617 | Queue<C, L>::append(DLL<C, L> q) |
| 618 | { |
| 619 | C *qtail = q.head; |
| 620 | if (qtail) { |
| 621 | while (this->next(qtail)) { |
| 622 | qtail = this->next(qtail); |
| 623 | } |
| 624 | } |
| 625 | if (!head) { |
| 626 | head = q.head; |
| 627 | tail = qtail; |
| 628 | } else { |
| 629 | if (q.head) { |
| 630 | this->next(tail) = q.head; |
| 631 | this->prev(q.head) = tail; |
| 632 | tail = qtail; |
| 633 | } |
| 634 | } |
| 635 | } |
| 636 | |
| 637 | template <class C, class L> |
| 638 | inline void |
no test coverage detected