Let`s say I have a class named Graph. I want to shorten the parameter list by using shorter type names. Is it possible to do that?
void Graph::APUtil(int u, vector <bool> visited, vector <bool> disc,
vector <bool> low, vector <bool> parent, vector <bool> ap)
I tried using auto but it does not work:
void Graph::APUtil(int u, auto visited, auto disc ...
I think since this is a class method lambda also does not work.
Any suggestion? I am asking this to save time in coding challenges.