a c++ loop queue template class with description