Every time I use find function in C++ , I always search its usage after using it for so many times. So I decide to make a summary of some commonly used usages.
C++ string.find()
Before seeing the usage directly, we need to know a data type size_type.
Size_type is a type defined by the string class type and the vector class type to hold the length of any string object or vector object. The standard library type defines size_type as unsigned. The abstract meaning of string is a string, the abstract meaning of size() is the size of a string, and the abstract meaning of string::size_type is a unit of size unit.