Imagine I was given this task:
char CharQueue2::dequeue(){//Write code here to make this work }
Then I write the below pop_back() operation.
Question is, if I need to return a 'char' type as per the requirement, what would be the return value here to help me validate the operation is successful?
1 2 3 4 5 6 7
char CharQueue2::dequeue()
{
vardeque.pop_back();
return {}; //*** What should I return here to demonstrate dequeue is successful?
// I could return vardeque.size() for example, but that is not a data type 'char'... interesting.
}