I thinking of something when using the find() function for a string.
In the code below I am serching for the first occurence of "," in the string
What I wonder is if it is possible to either find "," or the index of the end of the string if there isnīt any "," as in this case.
Code:int index = 0; std::string str = "abcde"; index = str.find(",")