| 41 | } |
| 42 | |
| 43 | void push(T new_value) |
| 44 | { |
| 45 | std::unique_ptr<node> p(new node(std::move(new_value))); |
| 46 | node* const new_tail=p.get(); |
| 47 | if(tail) |
| 48 | { |
| 49 | tail->next=std::move(p); |
| 50 | } |
| 51 | else |
| 52 | { |
| 53 | head=std::move(p); |
| 54 | } |
| 55 | tail=new_tail; |
| 56 | } |
| 57 | }; |
| 58 |
nothing calls this directly
no outgoing calls
no test coverage detected