won’t this compare function take any arguments in line 26.
CPP - Strings STL
@Somith Custom compare function always take arguments. It depends upon the data type of the elements being compared. If two strings are being compared then two string variables will be taken as arguments.
I cannot get which code you are referring to so please mention the lecture video you are referring .
It’s from
Arrays 2.0 (2D Arrays,Strings) lecture no 2 (CPP - Strings STL) line no.26
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.