I want to insert elements from some vector to queue..
What I tried is:
But this will give me an error: error C2039: 'push_back' : is not a member of 'std::queue<_Ty>'Code:
std::copy(vector.begin(), vector.end(), std::back_inserter(queue));
I guess because queue uses push() instead of push_back();
Which method is best alternative in this case?
Thanks a lot for help!