staticconst char_type* find(const char_type* ptr,std::size_t count,const char_type& ch); | (constexpr since C++17) | |
Searches for characterch within the firstcount characters of the sequence pointed to byptr.
SeeCharTraits for the general requirements on character traits forX::find.
| ptr | - | pointer to a character string to search |
| count | - | the number of characters to analyze |
| ch | - | the character to search for |
A pointer to the first character in the range specified by[ptr, ptr+ count) that compares equal toch, or a null pointer if not found.
Linear incount.