A class has a queue and I need to set the queue size in the constructor of the class. Is this possible?
Just an idea what I want to do:
class Test
{
queue<int> age_queue;
Test(int queue_size):age_queue(queue_size){}
};
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Try