Implement smartptr variants of ll_queue.